Greetings,

Having a problem retrieving files from geocities.com using LWP.
I get the following error with a test LWP app -

500 Can't connect to www.geocities.com:80 (Cannot assign requested address)

Also fails with LYNX (please see below). Retrieving files from geocities has
always worked in the past. Tried looking up the errno and HTAccess status
but
didn't get very far. Failing with WGET also.

I'm running on a Solaris server - SunOS 5.7

Any assistance is most appreciated.

Thanks,
Steve


Here's my test LWP app -

$itemurl = 'http://www.geocities.com/top_archer_1/ATTDualCordlessPhone.jpg';
use LWP::UserAgent;
use HTTP::Request;
use HTTP::Response;
my $ua = new LWP::UserAgent;
my $request = new HTTP::Request('GET', $itemurl);
my $response = $ua->request($request);
if ($response->is_success) {
     print $response->content;
} else {
     print $response->error_as_HTML;
}
print "$response";



Using LYNX -

$putfilehere = $SaveDir . $i . "_TEST.JPG" ;   # Save the image here
system 'lynx -trace -dump '. $URLValue[$i] . ' > ' . $putfilehere

Results in the following error info -

Making HTTP connection to www.geocities.com.
HTTP: Unable to connect to remote host for
`http://www.geocities.com/top_archer_
1/ATTDualCordlessPhone.jpg' (errno = 126).

Alert!: Unable to connect to remote host.

HTAccess:  status=-29999
HTAccess: `http://www.geocities.com/top_archer_1/ATTDualCordlessPhone.jpg'
has b
een accessed, No data loaded.




Reply via email to