Re: Bus error in LWP/Perl5

Nik Clayton (nik@blueberry.co.uk)
Thu, 19 Oct 1995 17:23:06 +0000 ()


Hi,

[Please note: I'm not on the libwww list, and would appreciate being
CC'd any messages on this subject]

> This also bus errors on my NeXT, with Perl5.001m...
> Any other takers?
> 
> Nick, can you elaborate on the problems with IP addresses in URL's?

My machine is 194.159.66.50, running an internal Web server. . .

~> /usr/local/bin/perl -e 'use LWP::Simple; getprint("http://194.159.66.50/");'
An Error Occurred

An Error Occurred

Could not connect to 194.159.66.50:80

If I do

~> /usr/local/bin/perl -e 'use LWP::Simple; getprint("http://localhost/");'

then it works fine. I can

    telnet 194.159.66.50 80

and then issue GET or HEAD requests with no problem. Netscape and Arena
can both connect to 194.159.66.50 (locally, that IP address does not
currently appear in any DNS or router files on the net). I'm not running
named, but am using /etc/hosts.

In the list of URLs I gave in my previous message, the first four or
five (which are all numeric) fail the 

    if($response->isSuccess)

test immediately. Those URLs again,

    HTTP://198.102.242.71/ShuttleCAM/ShuttleCAM.cgi
    http://140.109.40.248/~taob/
    http://140.109.40.248/~taob/Bench/
    http://144.174.145.14/LIVE/live.html
    http://198.147.111.30/~werdna/
    http://198.147.111.30/~werdna/fun.html

I've verified that I can connect to them with telnet, Arena and
Netscape.

Hope that's more useful. 

Regarding the other problem, thinking that it might be a problem with the 
reuse of $ua object over successive iterations, I moved the initialisation 
call 

    $ua = new LWP::UserAgent;

inside the main while(<>) loop. This had no effect.

N
-- 
--+=[ Blueberry Hill                   Blueberry Design                   ]=+--
--+=[ http://www.blueberry.co.uk/      1/9 Chelsea Harbour Design Centre, ]=+--
--+=[ WebMaster@blueberry.co.uk        London, England, SW10 0XE          ]=+--