SPUG: Dumping HTTP headers

ced at carios2.ca.boeing.com ced at carios2.ca.boeing.com
Mon Apr 10 18:20:10 CDT 2000


> 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?


I believe you can get headers from: 

  use LWP::Debug qw(+conns);


To get really verbose:
  use LWP::Debug qw(+conns +debug +trace)  


Rgds,
--
Charles DeRykus

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     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