Subject: | Use $ua->agent->request instead of $ua->agent->simple_request |
Hi,
I'm using HTTP::Proxy to forward connections to an svn server which requires HTTP
authentication.
I have setup the agent similar to:
my $agent = LWP::UserAgent->new();
$agent->credentials('http://my.trac.url','trac', $login, $password);
.. however because HTTP::Proxy uses the $self->agent->simple_request() method, the
credentials are not being passed through. Changing to agent->request() method provides
full support.
Patch attached against 0.17.
Cheers,
Stephen
--- HTTP-Proxy-0.17/lib/HTTP/Proxy.pm.dist 2005-09-29 07:26:09.000000000 +1000
+++ HTTP-Proxy-0.17/lib/HTTP/Proxy.pm 2006-03-20 03:49:55.000000000 +1100
@@ -356,7 +355,7 @@
# pop a response
my ( $sent, $chunked ) = ( 0, 0 );
- $response = $self->agent->simple_request(
+ $response = $self->agent->request(
$req,
sub {
my ( $data, $response, $proto ) = @_;