LWP::UserAgent::ProxyAny - A LWP UserAgent supports both HTTP_PROXY and IE proxy


LWP-UserAgent-ProxyAny documentation  | view source Contained in the LWP-UserAgent-ProxyAny distribution.

Index


NAME

Top

LWP::UserAgent::ProxyAny - A LWP UserAgent supports both HTTP_PROXY and IE proxy

SYNOPSIS

Top

  use LWP::UserAgent::ProxyAny;

  my $ua = LWP::UserAgent::ProxyAny->new;
  $ua->env_proxy;   # visit url with HTTP_PROXY or Win32 IE proxy settings

  my $response = $ua->get('http://sourceforge.net/projects/bookbot');
  if ($response->is_success) {
      print $response->content;  # or whatever
  }
  else {
      die $response->status_line;
  }

  # Or set proxy by specified name

  $ua->set_proxy_by_name("No");              # No Proxy
  $ua->set_proxy_by_name("Default");         # $ua->env_proxy
  $ua->set_proxy_by_name("127.0.0.1:8080");  # set proxy as http://127.0.0.1:8080

ABSTRACT

Top

Extended LWP::UserAgent, which supports both HTTP_PROXY and IE proxy setting.

DESCRIPTION

Top

This class is an extended LWP UserAgent, which can support both traditional HTTP_PROXY settings and proxy settings of Microsoft Windows Internet Explorer.

Read proxy settings from HTTP_PROXY or CGI_HTTP_PROXY or win32 IE proxy settings.

Set proxy settings from $name.

  $name = "No";            # No Proxy
  $name = "Default";       # $ua->env_proxy
  $name = "Others...";     # set proxy as http://Others...

Return current IE proxy settings and set $ie_proxy_no as proxy override settings.

BUGS, REQUESTS, COMMENTS

Top

Please report any requests, suggestions or bugs via http://sourceforge.net/projects/bookbot http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LWP-UserAgent-ProxyAny

SEE ALSO

Top

LWP::UserAgent

COPYRIGHT AND LICENSE

Top


LWP-UserAgent-ProxyAny documentation  | view source Contained in the LWP-UserAgent-ProxyAny distribution.