Pages

Sunday, May 13, 2012

Curl useful options


 -I/--head
              (HTTP/FTP/FILE) Fetch the HTTP-header only! HTTP-servers feature
              the command  HEAD which this uses to get nothing but the header
              of a document. When used on a FTP or FILE  file, curl  displays
              the file size and last modification time only.


$ curl -I www.google.com
HTTP/1.1 200 OK
Date: Sun, 13 May 2012 16:32:51 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
Set-Cookie: PREF=ID=821eaece51276b96:FF=0:TM=1336926771:LM=1336926771:S=cOtp8nzi-o3wIqdf; expires=Tue, 13-May-2014 16:32:51 GMT; path=/; domain=.google.com
Set-Cookie: NID=59=MaFem8YcG2Vg2RmRmOC36pnCSzI3sJ-9T-0x5ueuAZJCRS2PK3poumUU7dYCio0BDBQTdsy2N5TwdF4QqQyrah0_HVDV_WCK0hjzBzOUSYvO-bBgD2aCHKMWOc_fOo1_; expires=Mon, 12-Nov-2012 16:32:51 GMT; path=/; domain=.google.com; HttpOnly
P3P: CP="This is not a P3P policy! See http://www.google.com/support/accounts/bin/answer.py?hl=en&answer=151657 for more info."
Server: gws
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Transfer-Encoding: chunked

No comments:

Post a Comment