-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Consistent 403 at url that works in browser #1382
Comments
Reproducible. The response body of the 403 response says (snip): <p> Please identify your software properly by providing the
HTTP User-Agent string. Default from an underlying library
(eg Java, Ruby, Coda, libwww) is not sufficiently unique in
identifying your software. A good practice is to include a
URI to more information about your service or software.
</p> And indeed, specifying any User-Agent header does allow you through: require('request')({
url: "http://validator.w3.org/check?uri=https%3A%2F%2Fwww.svachon.com%3A443%2F",
headers: {'User-Agent': 'foo'}
}, function(error, response) {
console.log(response.statusCode); //-> 200
}) But you should of course respect their terms and provide a value that allows them to identify your software. |
You can also set the |
Thanks @papandreou, that fixed it! @decal But don't many requests not contain referrers? What kind of encoding problems? Also, could you perhaps provide an example? |
I'm not much of a server guy, so I'm not quite sure how to debug this. I'm not using a proxy, but I am running a firewall (?).
The text was updated successfully, but these errors were encountered: