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.
<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.
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.