On Thu, 14 Mar 2002 13:29:30 -0800 (PST) [EMAIL PROTECTED] wrote: : See thread earlier today regarding JavaScript & LWP. : One key is to carefully analyze the HTTP headers that : are being exchanged by the GUI browser & the server, & : emulate as closely as possible in your LWP user agent.
In case anyone is interested I have a patch (code and POD) to configure an instance of LWP::UserAgent 2.1 to log headers or content of requests or responses. It works with redirections and data involved in secure connections is logged in clear (this is no magic, but may be useful to know it in advance anyway). For instance, if you want to monitor headers and content of requests and just headers of responses you say: $ua = LWP::UserAgent->new; $ua->cookie_jar(HTTP::Cookies->new); push @{ $ua->requests_redirectable }, 'POST'; $ua->trace(LWP::UserAgent::TRACE_HEADERS | LWP::UserAgent::TRACE_REQUEST_CONTENT); # $ua begins browsing ... If you wanted it just drop me a line. -- fxn