Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change 
notification.

The following page has been changed by slive:
http://wiki.apache.org/httpd/WatchingHttpHeaders

------------------------------------------------------------------------------
  ## page was renamed from Recipes/WatchingHttpHeaders
- Help on various ways to watch http headers.
+ When debugging problems with your HTTP server, access to the raw HTTP request 
and response headers (and sometimes the entire request and response) can be 
invaluable. Here we list various tools that can help you see, at minimum, the 
HTTP response headers sent by the server, and sometimes also request headers 
and body content.
  
-  * livehttpheaders http://livehttpheaders.mozdev.org/
+  * [http://livehttpheaders.mozdev.org/ livehttpheaders]
+  * [http://www.fiddlertool.com/fiddler/ Microsoft Fiddler]
+  * [http://www.wireshark.org/ WireShark]
+  * [http://www.proxomitron.info/ Proxomitron]
  
  == Shell ==
+ 
+ Various HTTP tools that may be available at the unix prompt:
+ 
  {{{wget -S --spider URL
  lynx -head -dump URL
  curl -I URL
@@ -14, +20 @@

  w3m -dump_head URL
  siege -g URL}}}
  
+ == Manually constructing requests ==
- == Wireshark ==
- [http://www.wireshark.org/ WireShark]
  
- === Show only certain responses ===
+ Using any standard telnet client, you can manually interact with an HTTP 
server and see the full response including headers.
  
- 404: page not found
- {{{http.response.code == 404}}}
-  
- === 200: OK ===
- {{{http.response.code == 200}}}
+ {{{
+ telnet server.example.com 80
+ GET /dir/page.html HTTP/1.1
+ Host: server.example.com
+ }}}
  
+ Press enter twice at the end.
- === Show only certain HTTP methods ===
- {{{http.request.method == "POST" || http.request.method == "PUT"}}}
  
- === Show only filetypes that begin with “text” ===
- {{{http.content_type[0:4] == "text"}}}
- 
- === Show only javascript ===
- {{{http.content_type contains "javascript"}}}
- 
- === Show all http with content-type=”image/(gif|jpeg|png|etc)” ===
- {{{http.content_type[0:5] == "image"}}}
- 
- === Show all http with content-type=”image/gif” ===
- {{{http.content_type == "image/gif"}}}
- 
- === Do not show content http, only headers ===
- {{{http.response != 0 || http.request.method != "TRACE"}}}
- 
- == Proxomitron ==
- [http://www.proxomitron.info/ Proxomitron]
- 
- === Show requests and responses ===
- Simply open the log window.
- 

Reply via email to