in reply to Re: LWP::UserAgent not finishing get requests?
in thread LWP::UserAgent not finishing get requests?

This is a total guess... but maybe it's empty because the response isn't actually getting back from the server?

Those darn RST packets coming from my script for no apparent reason seem to do their job well...

  • Comment on Re^2: LWP::UserAgent not finishing get requests?

Replies are listed 'Best First'.
Re^3: LWP::UserAgent not finishing get requests?
by ikegami (Patriarch) on Jan 17, 2009 at 02:47 UTC
    Look at the code I pasted. No matter what the object contains, $response->as_string will always return something. And by your own testimony, is_success returns true so it's not empty.
      Well it looks like I'm the idiot here. :(

      I just did another as_string since you're right it REALLY shouldn't be empty.

      It did in fact contain the headers and then this X-Died: Can't locate HTML/HeadParser.pm in @INC

      Looks like that's the problem. I _swear_ on my sanity (yikes) that as_string returned blank yesterday. Maybe I'm dilusional...

      Thanks, and sorry for wasting your time!

      EDIT: Well at least I'm not a total idiot ;) I did in fact have the HeadParser module installed, but apparently it was broken because I just reinstalled it and everything works as expected. I hate computers...