Re: libwww-perl v0.40 question
Roy T. Fielding (fielding@avron.ICS.UCI.EDU)
Tue, 23 May 1995 00:52:40 -0700
> Perhaps I'm one of the few people still using the perl4 libraries, but
> what can I say...
No, most of the 167 people on the list are still using Perl4.
> I am running into a weird situation running this package on an SGI
> machine. If I use it within a script like Brooks's "w3new" tool, it
> seems to run OK. If I just use it as "get", or in another script I
> wrote today, I get an immediate error:
>
> --
> HTTP/1.0 502 Bad Response
> mime-version: 1.0
> content-type: text/html
> content-length: 233
> date: Tue, 23 May 1995 01:24:27 GMT
>
> <HEAD><TITLE>502 Bad Response</TITLE></HEAD>
> <BODY><H1>502 Bad Response</H1>
> The following request could not be satisfied by this client:
> <PRE>
> GET http://my.host:80/ [hostname omitted]
>
> No response.
>
> </PRE></BODY>
> --
>
> The funny thing is, the "no response" comes back immediately, not
> after a timeout, and the routine that is supposedly called for a
> timeout doesn't seem to get called. Instead, reading <FS> into $_ is
> failing with an undefined $_.
>
> This is with perl 4.036, running on IRIX 5.2.
>
> Any suggestions would be appreciated. It's gotta be something Real
> Dumb but I'm feeling Dumb and Dumber now and am hoping it will ring a
> bell for one of the libwww gurus.
It is being generated at the following die point in wwwhttp.pl:
$/ = "\n";
$_ = <FS>;
die "No response.\n" unless defined($_);
which means that the connection has been made and the request sent,
but the socket read did not return anything. In other words, what
you just said above.
Unfortunately, I have no idea why that is happening. I don't think
this has happened before. Anybody else using IRIX?
....Roy T. Fielding Department of ICS, University of California, Irvine USA
<fielding@ics.uci.edu>
<URL:http://www.ics.uci.edu/dir/grad/Software/fielding>