Answer the question
In order to leave comments, you need to log in
How to open www.dhl.ru with curl?
It is very easy to open www.dhl.ru (or https://www.dhl.ru ) in a browser. (Then he will throw a redirect there to another site, but this no longer matters).
But if you do it curl http://www.dhl.ru/
, then nothing will happen (it just "hangs" until you press Ctrl-C):
[email protected]:/tmp $ curl https://www.dhl.ru/
^C
Answer the question
In order to leave comments, you need to log in
curl 'http://dhl.com/' \
-H 'Connection: keep-alive' \
-H 'Upgrade-Insecure-Requests: 1' \
-H 'User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
-H 'Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7' \
--compressed \
--insecure -I
TP/1.0 301 Moved Permanently
Location: http://www.dhl.com/
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question