Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download 的时候,HTTP 400错误 #6

Closed
siziki opened this issue Oct 12, 2013 · 3 comments
Closed

download 的时候,HTTP 400错误 #6

siziki opened this issue Oct 12, 2013 · 3 comments

Comments

@siziki
Copy link

siziki commented Oct 12, 2013

麻烦作者看看,是哪里的问题?

多谢

@oott123
Copy link
Owner

oott123 commented Oct 12, 2013

请附上相关的错误信息。

@siziki
Copy link
Author

siziki commented Oct 12, 2013

~/bpcs_uploader$ ./bpcs_uploader.php download ~/tmp/ /Mp3/moonflow.mp3
===========================Baidu PCS Uploader===========================
usage : ./bpcs_uploader.php init|quickinit|quota
usage : ./bpcs_uploader.php upload|download [path_local] [path_remote]
usage : ./bpcs_uploader.php delete [path_remote]

usage : ./bpcs_uploader.php fetch [path_remote] [path_to_fetch]

wget --no-check-certificate -O "/home/siziki/tmp/ " "https://d.pcs.baidu.com/rest/2.0/pcs/file?method=download&access_token=XX&path=/apps/tian%0A%2Ftian%2FMp3%2Fmoonflow.mp3"
--2013-10-12 22:08:52-- https://d.pcs.baidu.com/rest/2.0/pcs/file?method=download&access_token=XXX&path=/apps/tian%0A%2Ftian%2FMp3%2Fmoonflow.mp3
Resolving d.pcs.baidu.com (d.pcs.baidu.com)... 123.125.65.66, 202.108.23.145
Connecting to d.pcs.baidu.com (d.pcs.baidu.com)|123.125.65.66|:443... connected.
HTTP request sent, awaiting response... 400 Bad Request
2013-10-12 22:08:53 ERROR 400: Bad Request.

我替换掉了其中的access_token:

感觉是脚本上有点问题,文件的路径似乎不太对。

@oott123
Copy link
Owner

oott123 commented Oct 15, 2013

此问题在issue #4 提到过。
请重新下载代码并重新初始化以解决该问题,或者如 #4 中提到的方法修改/config/appname文件。

@oott123 oott123 closed this as completed Oct 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants