Skip Menu |

This queue is for tickets about the HTTP-Proxy CPAN distribution.

Report information
The Basics
Id: 15355
Status: resolved
Priority: 0/
Queue: HTTP-Proxy

People
Owner: book [...] cpan.org
Requestors: Simon.Strack [...] infotech.monash.edu.au
Cc:
AdminCc:

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



Subject: Use UserAgent request instead of simple_request?
I was trying to write a simple proxy that talks to an upstream proxy server that requires authentication. All the proxy auth handling stuff in LWP::UserAgent is skipped when calling "simple_request", so I changed Proxy.pm to call "request" instead, and now authentication is handled. I haven't looked at all the filtering features of HTTP::Proxy, so perhaps this change will muck something up there - all I wanted was a way to handle proxy authentication for applications which support a proxy, but not proxy auth. SiMoN
[guest - Fri Oct 28 03:39:52 2005]: Show quoted text
> I was trying to write a simple proxy that talks to an upstream proxy
server Show quoted text
> that requires authentication. All the proxy auth handling stuff in > LWP::UserAgent is skipped when calling "simple_request", so I changed > Proxy.pm to call "request" instead, and now authentication is handled.
No it isn't skipped. You can use the HTTP_PROXY environment variable (with http://user:pass@upstreamproxy:port/) or the $proxy->agent()->proxy() method to set up the upstream proxy in your HTTP::Proxy. And it works. Show quoted text
> I haven't looked at all the filtering features of HTTP::Proxy, so perhaps > this change will muck something up there - all I wanted was a way to
handle Show quoted text
> proxy authentication for applications which support a proxy, but not proxy > auth.
Well, naturally there was a good reason for using simple_request... :-)