Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: No response from a get or post????by pc88mxer (Vicar) |
on Jul 18, 2008 at 03:12 UTC ( [id://698497]=note: print w/replies, xml ) | Need Help?? |
Your problem is a low-level connectivity problem:
Try setting $mech->timeout(0) and see if that fixes or changes the response. Also, make sure your web server is up and reachable - i.e. try wget or some other method to test it. To really debug the problem I'd have a look at the output of strace perl yourscript.pl (assuming you are on a Unix-like box.) Then we'd see what the results of the connect() calls are. I'm sure this is coming from the second connect() attempt. If you are on a Windows box then I have some other theories.
In Section
Seekers of Perl Wisdom
|
|