Skip Menu |
 

This queue is for tickets about the libwww-perl CPAN distribution.

Report information
The Basics
Id: 41759
Status: resolved
Priority: 0/
Queue: libwww-perl

People
Owner: Nobody in particular
Requestors: development [...] km.mydyn.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: How to debug the LWP::UserAgent ???
Date: Tue, 16 Dec 2008 17:45:06 +0100
To: bug-libwww-perl [...] rt.cpan.org
From: Development <development [...] km.mydyn.de>
Download (untitled) / with headers
text/plain 272b
Hi, i want to debug the HTTP-traffic but i cannot use the modul LWP::Debug any more. http://search.cpan.org/~gaas/libwww-perl-5.822/lib/LWP/Debug.pm And i can't find another method to do it. :-( Why is such a sensefull feature not included any more ? regards Karsten
Download (untitled) / with headers
text/plain 629b
Moreover, it also seems to break existing modules that rely on it actually having something inside, like LWP::UserAgent::Determined used by Net::Amazon::S3. Deprecation should follow less abrupt change patterns imho. Leaving an empty AUTOLOAD function could be nice. On Tue Dec 16 11:45:27 2008, development@km.mydyn.de wrote: Show quoted text
> Hi, > > i want to debug the HTTP-traffic but i cannot use the modul LWP::Debug > any more. > http://search.cpan.org/~gaas/libwww-perl-5.822/lib/LWP/Debug.pm > > And i can't find another method to do it. :-( > > Why is such a sensefull feature not included any more ? > > regards > Karsten >
Subject: Re: [rt.cpan.org #41759] How to debug the LWP::UserAgent ???
Date: Sat, 27 Dec 2008 20:32:36 +0100
To: bug-libwww-perl [...] rt.cpan.org
From: Development <development [...] km.mydyn.de>
Download (untitled) / with headers
text/plain 959b
Hi, i'm sorry but i don't understand what you want to say me? Will this function be reimplemented again? And what it the reason why this functionality has been taken out? Regards Karsten Flavio Poletti via RT schrieb: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=41759 > > > Moreover, it also seems to break existing modules that rely on it > actually having something inside, like LWP::UserAgent::Determined used > by Net::Amazon::S3. > > Deprecation should follow less abrupt change patterns imho. Leaving an > empty AUTOLOAD function could be nice. > > On Tue Dec 16 11:45:27 2008, development@km.mydyn.de wrote: >
>> Hi, >> >> i want to debug the HTTP-traffic but i cannot use the modul LWP::Debug >> any more. >> http://search.cpan.org/~gaas/libwww-perl-5.822/lib/LWP/Debug.pm >> >> And i can't find another method to do it. :-( >> >> Why is such a sensefull feature not included any more ? >> >> regards >> Karsten >> >>
> > > >
Download (untitled) / with headers
text/plain 1.6k
Hi, I was just adding more feedback for the maintainer. In addition to what you said, I was noting that the plain elimination of the functions in that module breaks other modules in CPAN that rely upon it, e.g. LWP::UserAgent::Determined (used by Net::Amazon::S3 under the hood). What I'm suggesting is to /at least/ include the following: sub AUTOLOAD {} in package LWP::Debug, in order for the deprecation not to break any existing code. I actually don't know how you could address your problem. Cheers, Flavio. On Sat Dec 27 14:32:51 2008, development@km.mydyn.de wrote: Show quoted text
> Hi, > > i'm sorry but i don't understand what you want to say me? > > Will this function be reimplemented again? > > And what it the reason why this functionality has been taken out? > > Regards > Karsten > > > Flavio Poletti via RT schrieb:
> > <URL: https://rt.cpan.org/Ticket/Display.html?id=41759 > > > > > Moreover, it also seems to break existing modules that rely on it > > actually having something inside, like LWP::UserAgent::Determined used > > by Net::Amazon::S3. > > > > Deprecation should follow less abrupt change patterns imho. Leaving an > > empty AUTOLOAD function could be nice. > > > > On Tue Dec 16 11:45:27 2008, development@km.mydyn.de wrote: > >
> >> Hi, > >> > >> i want to debug the HTTP-traffic but i cannot use the modul LWP::Debug > >> any more. > >> http://search.cpan.org/~gaas/libwww-perl-5.822/lib/LWP/Debug.pm > >> > >> And i can't find another method to do it. :-( > >> > >> Why is such a sensefull feature not included any more ? > >> > >> regards > >> Karsten > >> > >>
> > > > > > > >
>
Subject: Re: [rt.cpan.org #41759] How to debug the LWP::UserAgent ???
Date: Mon, 29 Dec 2008 15:24:15 +0100 (CET)
To: bug-libwww-perl [...] rt.cpan.org
From: "Development" <development [...] km.mydyn.de>
Download (untitled) / with headers
text/plain 925b
Hi, at this time i just use the release before where this module is still complete. What i cannot understand is why someone is erasing sensefull functions? And there must be a user in the CVS who has made the changes or something else to find out what happened and why! This is a crazy thing. Karsten Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=41759 > > > Hi, > > I was just adding more feedback for the maintainer. In addition to > what you said, I was noting that the plain elimination of the functions > in that module breaks other modules in CPAN that rely upon it, e.g. > LWP::UserAgent::Determined (used by Net::Amazon::S3 under the hood). > What I'm suggesting is to /at least/ include the following: > > sub AUTOLOAD {} > > in package LWP::Debug, in order for the deprecation not to break any > existing code. I actually don't know how you could address your problem. > > Cheers, > > Flavio.
Download (untitled) / with headers
text/plain 866b
I've now restored the old code of LWP::Debug so that 3rd party modules (like LWP::UserAgent::Determined) can continue to run as before. The reason the LWP::Debug was removed was I did not find it pretty, nor very useful and that it's coverage was already pretty bad. If you want to debug the HTTP traffic that LWP generates I suggest that you instead use a OS level tool like wireshark or strace. That's what I do. If you don't need that kind of detail you might generate traces of the requests/responses passed through with simple monitoring handlers like this: use LWP::UserAgent; $ua = LWP::UserAgent->new; $ua->default_header('Accept-Encoding' => scalar HTTP::Message::decodable()); $ua->add_handler("request_send", sub { shift->dump; return }); $ua->add_handler("response_done", sub { shift->dump; return }); $ua->get("http://www.example.com");
Subject: Re: [rt.cpan.org #41759] How to debug the LWP::UserAgent ???
Date: Thu, 01 Jan 2009 11:48:48 +0100
To: bug-libwww-perl [...] rt.cpan.org
From: Development <development [...] km.mydyn.de>
Download (untitled) / with headers
text/plain 1.3k
Gisle_Aas via RT schrieb: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=41759 > > > I've now restored the old code of LWP::Debug so that 3rd party modules (like > LWP::UserAgent::Determined) can continue to run as before. > > The reason the LWP::Debug was removed was I did not find it pretty, nor very useful and that > it's coverage was already pretty bad. >
Hmm - i find the possibility to debug is always usefull. When you google for debugging the LWP module you will always find only LWP::Debug as solution. Show quoted text
> If you want to debug the HTTP traffic that LWP generates I suggest that you instead use a OS > level tool like wireshark or strace. That's what I do. >
O.K. Thank you for the hint! It would be nice to add it to the LWP::Debug documentation. Normally you think first to debug in the code itself. Show quoted text
> If you don't need that kind of detail you might generate traces of the requests/responses > passed through with simple monitoring handlers like this: > > use LWP::UserAgent; > $ua = LWP::UserAgent->new; > $ua->default_header('Accept-Encoding' => scalar HTTP::Message::decodable()); > > $ua->add_handler("request_send", sub { shift->dump; return }); > $ua->add_handler("response_done", sub { shift->dump; return }); > > $ua->get("http://www.example.com"); > >
Another very good hint that should be added. Cheers Karsten
Download (untitled) / with headers
text/plain 122b
Please make a new release with this back in. I'm getting many complaints about Net::Amazon::S3 not working. Thanks, Leon
Download (untitled) / with headers
text/plain 155b
On Mon Jan 12 10:01:07 2009, LBROCARD wrote: Show quoted text
> Please make a new release with this back in.
Sure. libwww-perl-5.823.tar.gz has now been uploaded to CPAN.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.