Discussion:
Spider? Headers?
ToddAndMargo
2018-02-08 05:16:42 UTC
Permalink
Hi All,

Is there a way to do this (capture headers) with curl?

wget -S --spider http://xxxxxxxxxx.zip


Many thanks,
-T


-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mai
Daniel Stenberg
2018-02-08 23:00:54 UTC
Permalink
Post by ToddAndMargo
Is there a way to do this (capture headers) with curl?
wget -S --spider http://xxxxxxxxxx.zip
curl -I http://xxxxxxxxxx.zip

... makes a HEAD request and shows the HTTP headers for the URL. Is what you
mean?
--
/ daniel.haxx.se
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.htm
Todd Chester
2018-02-09 11:32:17 UTC
Permalink
Post by Daniel Stenberg
Post by ToddAndMargo
Is there a way to do this (capture headers) with curl?
   wget -S --spider http://xxxxxxxxxx.zip
curl -I http://xxxxxxxxxx.zip
... makes a HEAD request and shows the HTTP headers for the URL. Is what
you mean?
Perfect! Exactly the say data returned. Thank you!

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquett
ToddAndMargo
2018-02-09 22:07:00 UTC
Permalink
Post by Daniel Stenberg
Post by ToddAndMargo
Is there a way to do this (capture headers) with curl?
   wget -S --spider http://xxxxxxxxxx.zip
curl -I http://xxxxxxxxxx.zip
... makes a HEAD request and shows the HTTP headers for the URL. Is what
you mean?
Yes. Thank you!

Also, what is the syntax is I want to also do
this on a file residing on my local hard drive?
(I want to compare to one on the Internet.)




-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https

Loading...