Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I can see HTTP header response by curl -I command.

Is there any option to see the HTTP request header sent?

# curl -I www.google.com

HTTP/1.1 200 OK
Date: Sat, 31 Dec 2011 00:55:53 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
Server: gws
Transfer-Encoding: chunked
share|improve this question

2 Answers 2

up vote 5 down vote accepted

From the curl man page:

   -v/--verbose
          Makes the fetching more verbose/talkative. Mostly useful for debugging. A line  starting
          with '>' means "header data" sent by curl, '<' means "header data" received by curl that
          is hidden in normal cases, and a line starting with '*' means additional  info  provided
          by curl.
share|improve this answer
    
thanks Rob..... –  P K Jan 1 '12 at 18:22

If you are on Windows, you can use HTTP Sniffer, for example IEInspector HTTP Analyzer

share|improve this answer
    
thanks but i need specifically for curl, firebug,httpfox and your IEInspectors are actually GUI based solutions. –  P K Jan 1 '12 at 18:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.