Subject: | Proxy settings are ignored |
The following patch adds the 'env_proxy' option to the LWP::UserAgent request so Yahoo::Search can be used through web proxies.
--- Yahoo\Search\Request.pm.orig 2005-03-01 17:58:36.000000000 +0000
+++ Yahoo\Search\Request.pm 2005-03-01 17:58:32.000000000 +0000
@@ -173,5 +173,5 @@
warn "Fetching url: $url\n" if $Request->{Debug} =~ m/url/x;
- my $response = LWP::UserAgent->new(agent => "Yahoo::Search $Yahoo::Search:
:VERSION)")->request(HTTP::Request->new(GET => $url));
+ my $response = LWP::UserAgent->new(agent => "Yahoo::Search ($Yahoo::Search::VERSION)", env_proxy => 1)->request(HTTP::Request->new(GET => $url));
##