Answer the question
In order to leave comments, you need to log in
How to get HTTP header as fast as possible?
Tell me how quickly (faster than using curl) to get the http header from a remote server - HTTP / 1.1 200 OK (for example, I have 300,000 urls) to find out / check if the file exists I
run it like this:
curl --connect-timeout 1 -Is site.com/image/325.jpg 2>/dev/null | head -n1
if [ "$Iswork" == "HTTP/1.1 200 OK
" ];
then
...............
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question