|
|
Choosing A Webhost: |
Re: proxy authentication and little patch: msg#00036lang.perl.modules.lwp
Le mardi 28 mars 2006 à 23:28, Bas Bloemsaat écrivait: > Hi, > > Tonight I was stumbling over authentication, trying to get through a proxy > with LWP::UserAgent. Did you try using http://user:pass@proxy:port/ for the proxy address? Compare $ HTTP_PROXY=http://localhost:8080/ perl -MLWP -MLWP::Debug=+ -e 'print LWP::UserAgent->new(env_proxy => 1)->request( HTTP::Request->new( GET => "http://www.perdu.com/"))->content()' LWP::UserAgent::new: () LWP::UserAgent::proxy: http http://localhost:8080/ LWP::UserAgent::request: () LWP::UserAgent::send_request: GET http://www.perdu.com/ LWP::UserAgent::_need_proxy: Proxied to http://localhost:8080/ LWP::Protocol::http::request: () LWP::UserAgent::request: Simple response: Proxy Authentication Required with $ HTTP_PROXY=http://http:proxy@localhost:8080/ perl -MLWP -MLWP::Debug=+ -e 'print LWP::UserAgent->new(env_proxy => 1)->request( HTTP::Request->new( GET => "http://www.perdu.com/"))->content()' LWP::UserAgent::new: () LWP::UserAgent::proxy: http http://http:proxy@localhost:8080/ LWP::UserAgent::request: () LWP::UserAgent::send_request: GET http://www.perdu.com/ LWP::UserAgent::_need_proxy: Proxied to http://http:proxy@localhost:8080/ LWP::Protocol::http::request: () LWP::Protocol::collect: read 204 bytes LWP::UserAgent::request: Simple response: OK <html><head><title>Vous Etes Perdu ?</title></head><body><h1>Perdu sur l'Internet ?</h1><h2>Pas de panique, on va vous aider</h2><strong><pre> * <----- vous êtes ici</pre></strong></body></html> -- Philippe "BooK" Bruhat Remember that what is good for the goose may not be good for the gender. (Moral from Groo The Wanderer #4 (Epic))
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Subject: [Crypt::SSLeay] test problems on Solaris 2.8, Heiko Jansen |
|---|---|
| Next by Date: | Re: 501 return code, Scott T. Hildreth |
| Previous by Thread: | proxy authentication and little patch, Bas Bloemsaat |
| Next by Thread: | Re: Subject: [Crypt::SSLeay] test problems on Solaris 2.8, Heiko Jansen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |