We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
user-agnet
Hi,
The douban.fm server ban the request without user-agent. The default curl request is not include User-agent field, it would return a HTTP 403 error.
user-agent
<html> <head><title>403 Forbidden</title></head> <body bgcolor="white"> <center><h1>403 Forbidden</h1></center> <hr><center>nginx</center> </body> </html>
so, to fix this bug just need to add curl_easy_setopt(pl->curl, CURLOPT_USERAGENT, "curl/7.30.0"); to the source code.
curl_easy_setopt(pl->curl, CURLOPT_USERAGENT, "curl/7.30.0");
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
The douban.fm server ban the request without
user-agent
. The default curl request is not include User-agent field, it would return a HTTP 403 error.so, to fix this bug just need to add
curl_easy_setopt(pl->curl, CURLOPT_USERAGENT, "curl/7.30.0");
to the source code.The text was updated successfully, but these errors were encountered: