Skip to content

Douban Server ban no user-agnet request #16

@tywtyw2002

Description

@tywtyw2002

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions