synthetic has asked for the wisdom of the Perl Monks concerning the following question:

im using https_post, but i get Operation Time Out for some reason, with no data sent to the target server while running tcpdump. Any ideas where to look on what would be causing the error?


my $pd = make_form(%post_data);

my ($page,$server_response,%headers) = post_https( $self->server(), $self->port(), $self->path(),'', $pd,) || die "$!";


$! says Operation Time Out. , yet manually typing the URL everything works with the server in firefox

Replies are listed 'Best First'.
Re: https_post using Net::SSLeay
by Anonymous Monk on Mar 30, 2010 at 00:47 UTC
    Try using LWP via WWW::Mechanize, its much simpler and much easier to debug.
Re: https_post using Net::SSLeay
by Khen1950fx (Canon) on Mar 30, 2010 at 05:23 UTC
    Don't forget to use:
    use Net::SSLeay qw(post_https make_form);
      i tried lwp and get the same error. also i have qw'ed make_form and post_https.
        its network issues. thanks guys. i dont understand why tcpdump isnt showing the traffic leaving..