viewing http headers

Matthew Seaman m.seaman at infracaninophile.co.uk
Tue May 6 14:46:46 PDT 2003


On Tue, May 06, 2003 at 03:17:44PM -0400, Gerard Samuel wrote:
> Im trying to figure out a way to view http headers sent from Apache.
> Im debugging a php application on my server.
> tcpdump doesn't seem to fit the bill.
> Any pointers would be great.  Thanks.

The HEAD and GET programs that come with perl libwww (ports
www/p5-libwww) are invaluable for this sort of debugging:

    % HEAD http://www.freebsd.org/
    200 OK
    Connection: close
    Date: Tue, 06 May 2003 21:45:10 GMT
    Accept-Ranges: bytes
    ETag: "26f855-8348-3eb7e4dc"
    Server: Apache/1.3.x LaHonda (Unix)
    Content-Length: 33608
    Content-Type: text/html
    Last-Modified: Tue, 06 May 2003 16:37:48 GMT
    Client-Date: Tue, 06 May 2003 21:45:10 GMT
    Client-Peer: 216.136.204.117:80
    Client-Response-Num: 1
    X-Pad: avoid browser bug

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030506/f8f6cc27/attachment.bin


More information about the freebsd-questions mailing list