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 <curl-users_at_cool.haxx.se>
Date: Sat, 13 Jun 2020 22:49:19 +0200 (CEST)
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 "http://www.eunet.lv/library/win/LYNX/EFREMOW/serdze.txt"
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
-- 
  / daniel.haxx.se | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-06-13