curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Question: Why is a dedicated Webpage not working in cURL

From: Petr Pisar via curl-users <>
Date: Wed, 1 Jul 2020 18:32:33 +0200

On Wed, Jul 01, 2020 at 05:23:03PM +0200, Mac-Fly via curl-users wrote:
> When I open that page in any browser (I tried Chrome, IE, Firefox and Edge) it works. But if I run:
> curl.exe
> I get:
> <TITLE>Access Denied</TITLE>
> <H1>Access Denied</H1>
> You don't have permission to access "http&#58;&#47;&#47;www&#46;amd&#46;com&#47;en&#47;support" on this server.<P>
> Reference&#32;&#35;18&#46;edd47b5c&#46;1593616789&#46;17e4692c
> </BODY>
> </HTML>
> What could be the reason for such?
Assuming the response is from the server and not from a proxy, you would have
to ask AMD how they dare to discriminate user agents based on the request
headers. (Especially when discrimination is a hot topic now in the U.S.) E.g.
this works for me:

curl --verbose --user-agent Mozilla --header 'Accept-Encoding: identity' --header 'Connection: Keep-Alive'

But changing the --user-agent into curl or wget makes the server not to

-- Petr


Received on 2020-07-01