Jason Chinnes wrote:
>
> Thanks for your reduction of the code, and for your input in general.  I
> have tried http://localhost/ w/o a file name.  In a browser, I get the
> apache generated directory index.  From the script, however, I get the
> same hanging behavior untill it times out.  In regardes to your comment:

Then the only other thing I can think of is that Perl is using a different
proxy setup from your browser. Check out the POD for LWP and LWP::UserAgent
which shows you how to define a proxy for an LWP::UserAgent object. You may
need to talk to your sysadmin for the details. In any case it would be
an odd way to set up a network to force internal IP addresses through
a proxy by default. You might even try finding out your real IP address
and using that instead of the 'localhost' loopback.

After that then I'm stumped. Does the GET just hang forever or does it
time out? If it finishes eventually Have you done:

  print $response->status_line

to see what the final status is.

> Rob wrote:
> >
> > Printing an HTTP header to STDOUT has no useful purpose at all.
>
> this is not compleate task at hand.  It is simply my simplification of
> the exact problem I'm having. The full task at hand involves java
> servlets which are generating binary files which will be further
> manipulated by my scripts, but the details of that are beyond the scope
> of this issue.

OK, so you're both server and client, which makes sense. Have you always
run this code as a CGI fire up by Apache? If so, then you would do better
to make it work stand-alone from your command line before simultaneously
battling the restrictions imposed on the server's login.

HTH,

Rob




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to