Skip Menu |

This queue is for tickets about the Net-Delicious CPAN distribution.

Report information
The Basics
Id: 12981
Status: resolved
Priority: 0/
Queue: Net-Delicious

People
Owner: Nobody in particular
Requestors: alan.coopersmith [...] sun.com
Cc:
AdminCc:

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



Subject: Net::Delicious doesn't work with http proxies
Net::Delicious doesn't honor the usual environment variables to specify http proxies. Fixing this is a simple matter of calling the LWP function to read those from the environment: --- Delicious.pm~ Sat May 28 11:08:55 2005 +++ Delicious.pm Sat May 28 11:20:23 2005 @@ -938,7 +938,7 @@ if (ref($self->{'__ua'}) ne "LWP::UserAgent") { my $ua = LWP::UserAgent->new(); $ua->agent(sprintf("%s, %s",__PACKAGE__,$Net::Delicious::VERSION)); - + $ua->env_proxy(); $self->{'__ua'} = $ua; }
On Sat May 28 14:41:58 2005, guest wrote: Show quoted text
> Net::Delicious doesn't honor the usual environment variables to
specify Show quoted text
> http proxies. Fixing this is a simple matter of calling the LWP
function Show quoted text
> to read those from the environment: > > --- Delicious.pm~ Sat May 28 11:08:55 2005 > +++ Delicious.pm Sat May 28 11:20:23 2005 > @@ -938,7 +938,7 @@ > if (ref($self->{'__ua'}) ne "LWP::UserAgent") { > my $ua = LWP::UserAgent->new(); > $ua->agent(sprintf("%s, %
s",__PACKAGE__,$Net::Delicious::VERSION)); Show quoted text
> - > + $ua->env_proxy(); > $self->{'__ua'} = $ua; > }
From: ascope [...] cpan.org
You're right! This has not only been patched in CVS but I've gone ahead and made a public 'user_agent' helper method that will return the object's LWP::UserAgwnt thingy for complete custom tweaking. (It will set proxy_env by default.) I will release 1.01 in the next couple of days depending on Everything Else. Cheers, On Sat May 28 14:41:58 2005, guest wrote: Show quoted text
> Net::Delicious doesn't honor the usual environment variables to specify > http proxies. Fixing this is a simple matter of calling the LWP function > to read those from the environment: > > --- Delicious.pm~ Sat May 28 11:08:55 2005 > +++ Delicious.pm Sat May 28 11:20:23 2005 > @@ -938,7 +938,7 @@ > if (ref($self->{'__ua'}) ne "LWP::UserAgent") { > my $ua = LWP::UserAgent->new(); > $ua->agent(sprintf("%s, %s",__PACKAGE__,$Net::Delicious::VERSION)); > - > + $ua->env_proxy(); > $self->{'__ua'} = $ua; > }
This was fixed in N:D 1.01 which is now available via the CPAN. On Tue Jun 20 05:16:18 2006, guest wrote: Show quoted text
> On Sat May 28 14:41:58 2005, guest wrote:
> > Net::Delicious doesn't honor the usual environment variables to
> specify
> > http proxies. Fixing this is a simple matter of calling the LWP
> function
> > to read those from the environment: > > > > --- Delicious.pm~ Sat May 28 11:08:55 2005 > > +++ Delicious.pm Sat May 28 11:20:23 2005 > > @@ -938,7 +938,7 @@ > > if (ref($self->{'__ua'}) ne "LWP::UserAgent") { > > my $ua = LWP::UserAgent->new(); > > $ua->agent(sprintf("%s, %
> s",__PACKAGE__,$Net::Delicious::VERSION));
> > - > > + $ua->env_proxy(); > > $self->{'__ua'} = $ua; > > }
> >