SPUG: Dumping HTTP headers
Terry Nightingale
tnight at ironworx.com
Mon Apr 10 16:15:42 CDT 2000
Richard,
If it were me, I would whip together a quick TCP server like the ones presented
on pp 348-351 of the Camel book. Have it just print whatever it receives on the
listening socket. Then send your request to this custom server instead of to
Apache, and watch what the server prints.
HTH,
Terry
On Mon, 10 Apr 2000, Richard Anderson wrote:
> Not necessarily a SPUG question, perhaps, but: I need to debug an HTTP
> request I am generating using the LWP and HTTP::Request::Common modules.
> How can I send a request to my (Apache) webserver and get a dump of the HTTP
> headers?
> Obviously, I could write a custom CGI script to do this, but is there an
> easier way?
>
> Richard.Anderson at seaslug.org
> www.zipcon.net/~starfire/home (personal)
> www.raycosoft.com (corporate)
>
>
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
> Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
> SUBSCRIBE/UNSUBSCRIBE: Replace "action" below by subscribe or unsubscribe
> Email to majordomo at pm.org: "action" spug-list your_address
>
>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
SUBSCRIBE/UNSUBSCRIBE: Replace "action" below by subscribe or unsubscribe
Email to majordomo at pm.org: "action" spug-list your_address
More information about the spug-list
mailing list