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: Dan Fandrich via curl-users <curl-users_at_cool.haxx.se>
Date: Wed, 1 Jul 2020 09:21:58 -0700

On Wed, Jul 01, 2020 at 05:23:03PM +0200, Mac-Fly via curl-users wrote:
> excuse me, if this is a very stupid question in advance, but I really don't know what to do. cURL works just fine for me except for one webpage:
> https://www.amd.com/en/support
>
> When I open that page in any browser (I tried Chrome, IE, Firefox and Edge) it works. But if I run:
> curl.exe https://www.amd.com/en/support
>
> I get:
> <HTML><HEAD>
> <TITLE>Access Denied</TITLE>
> </HEAD><BODY>
> <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?

My first guess would be https://curl.haxx.se/docs/httpscripting.html#User_Agent
or https://curl.haxx.se/docs/httpscripting.html#Cookie_Basics but there are
several other possibilities listed on that page.

Dan
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-07-01