GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  LWP::PROTOCOL::CONNECT (3)

.ds Aq ’

NAME

LWP::Protocol::connect - Provides HTTP/CONNECT proxy support for LWP::UserAgent

CONTENTS

SYNOPSIS



  use LWP::UserAgent;

  $ua = LWP::UserAgent->new();
  $ua->proxy(https, connect://proxyhost.domain:3128/);

  $ua->get(https://www.somesslsite.com);



Proxy Authentication

If you pass the authentication within the userinfo string of the proxy url a Basic authentication header will always be generated and sent to the proxy.



  $ua->proxy(https, connect://user:pw@proxyhost.domain:3128);



The more general way is to add the credentials of the proxy to the $ua object.



  $ua->credentials("localhost:3128", "Squid proxy-caching web server", "user", "pw");



In this case the first request to the proxy will fail with a 407 Proxy Auth. Required. This will cause LWP::UserAgent to choose the right LWP::Authen::<method> module to add the authentication and retry.

DESCRIPTION

The LWP::Protocol::connect module provides support for using https over a proxy via the HTTP/CONNECT method.

SEE ALSO

IO::Socket::SSL, LWP::Protocol::https

COPYRIGHT

Copyright 2013 Markus Benning <me@w3r3wolf.de>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 LWP::PROTOCOL::CONNECT (3) 2014-01-07

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.