User Tools

Site Tools


tips:linux:httppost

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tips:linux:httppost [2009/06/08 15:47] eriktips:linux:httppost [2012/06/02 13:09] (current) erik
Line 15: Line 15:
 to get a HEAD request. to get a HEAD request.
  
-And+And:
  
   curl --header "Accept-Encoding: gzip" http://www.foo.com/ | gunzip   curl --header "Accept-Encoding: gzip" http://www.foo.com/ | gunzip
  
-to get the compressed request.+to get the compressed request, or to verify that the request is compressed: 
 + 
 +  curl -I -H "Accept-Encoding: gzip,deflate" http://www.foo.com/
  
 You can also pipe the resulting page to vim, using: You can also pipe the resulting page to vim, using:
tips/linux/httppost.txt · Last modified: 2012/06/02 13:09 by erik