[PLUG] Perl LWP... viewing POST data to server

Matt Alexander lug at phxlinux.org
Tue May 11 18:42:02 UTC 2004


On Tue, 11 May 2004, Evan Heidtmann wrote:

> On Tue, 2004-05-11 at 14:13, Matt Alexander wrote:
> > Any LWP gurus out there?
> > I'm trying to debug a problem I'm having with LWP and I'd like to view the
> > POST data that is being sent to the web server.  I've included the
> > following:
> >
> > use LWP::Debug qw(+);
> > use LWP::Debug qw(conns); conns('+');
> >
> > According to the LWP::Debug manpage, the "conns" function is supposed to
> > "show all data transfered over the connections".  I'm just not sure how to
> > make conns actually do that...
> > Thanks,
> > ~M
>
> I'm no LWP Guru, but perldoc LWP::Debug says that the functions are only
> used within the library. So maybe you should look for something else for
> this function.
>
> You could always just print the data before you POST it.

Right, but I'm trying to see what the problem is between LWP and the
server.  If I use curl then everything works as it should.  Mozilla works
as it should and I can see that things are passed correctly when I use the
Mozilla HTTP Live Headers plugin.  There's just something screwy that LWP
is doing with the POST that breaks things for certain specific cases...





More information about the PLUG mailing list