Forum Moderators: phranque

Message Too Old, No Replies

HttpSniffer

cool little perl tool

         

ppg

3:37 pm on Jun 3, 2004 (gmt 0)

10+ Year Member



I just came accross this little Perl script which you run from the command line.

It acts kind of like a proxy server: you specify a host you want to reach, then connect your browser to localhost:8080 (or whatever port you have HttpSniffer set to run on) and then request a file from the designated server in your browser.

HttpSniffer shows you (or logs to a txt file) all the header information sent from your browser and back from the server. It shows you cookie information too, and even response times, divided into latency and processing time. Good for checking what headers your server is returning, and how quickly its doing it.

Here's a sample output returned for a request to apache on my local machine:

<-- C05 <-- S06 ==== (139) Response 200 to <GET /company.htm HTTP/1.1>
<-- C05 <-- S06 ==== Response time 0 (Latency 0, Processing 0)
<-- C05 <-- S06 HTTP/1.1 200 OK
<-- C05 <-- S06 Date: Thu, 03 Jun 2004 15:31:15 GMT
<-- C05 <-- S06 Server: Apache/1.3.27 (Win32) mod_jk/1.2.4 PHP/4.3.6
<-- C05 <-- S06 Last-Modified: Thu, 01 Apr 2004 16:34:36 GMT
<-- C05 <-- S06 ETag: "0-327c-406c449c"
<-- C05 <-- S06 Accept-Ranges: bytes
<-- C05 <-- S06 Content-Length: 12924
<-- C05 <-- S06 Keep-Alive: timeout=15, max=100
<-- C05 <-- S06 Connection: Keep-Alive
<-- C05 <-- S06 Content-Type: text/html
<-- C05 <-- S06 ==== Body 12924 bytes

You can get it from [schmerg.com...] if you want to have a play.

[edited by: DaveAtIFG at 3:57 pm (utc) on June 3, 2004]
[edit reason] Linked URL [/edit]