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: Browser can but cURL can not

From: Daniel Stenberg via curl-users <>
Date: Sat, 13 Jun 2020 22:49:19 +0200 (CEST)

On Sat, 13 Jun 2020, Коваленко Анатолий Викторович via curl-users wrote:

> But cURL can not download that link (you may change option «-I» to «-O»):
> curl.exe -I -L ""

It can. But the server spots that it isn't a browser request by sniffing the
user-agent string and sends back a broken response if so.

If you add "-A Mozilla/" to that command line you'll see that it works just
like in the browser case

  / | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features

Received on 2020-06-13