in reply to Re: LWP SSL TImeouts
in thread LWP SSL TImeouts

Senthil,


Thanks so much for your response. I tried running your code and it did basically the same thing. It just sat there for a while and eventually outputted "code:500" and terminated. Here's what it outputted to the "postcontent.html" file:

SSL read timeout: at /usr/local/share/perl/5.10.1/LWP/Protocol/http.pm + line 305 at /usr/local/lib/perl/5.10.1/Net/SSL.pm line 211 Net::SSL: +:die_with_error('Net::SSL=GLOB(0x2c0c6b0)', 'SSL read timeout') calle +d at /usr/local/lib/perl/5.10.1/Net/SSL.pm line 219 Net::SSL::__ANON_ +_('ALRM') called at /usr/local/lib/perl/5.10.1/Net/SSL.pm line 222 ev +al {...} called at /usr/local/lib/perl/5.10.1/Net/SSL.pm line 222 Net +::SSL::read('LWP::Protocol::https::Socket=GLOB(0x2c18990)', '', 1024, + 0) called at /usr/local/share/perl/5.10.1/LWP/Protocol/http.pm line +305 LWP::Protocol::http::request('LWP::Protocol::https=HASH(0x2a658f8 +)', 'HTTP::Request=HASH(0x29eaee8)', undef, undef, undef, 180) called + at /usr/local/share/perl/5.10.1/LWP/UserAgent.pm line 193 eval {...} + called at /usr/local/share/perl/5.10.1/LWP/UserAgent.pm line 192 LWP +::UserAgent::send_request('LWP::UserAgent=HASH(0x29c7ef8)', 'HTTP::Re +quest=HASH(0x29eaee8)', undef, undef) called at /usr/local/share/perl +/5.10.1/LWP/UserAgent.pm line 275 LWP::UserAgent::simple_request('LWP +::UserAgent=HASH(0x29c7ef8)', 'HTTP::Request=HASH(0x29eaee8)', undef, + undef) called at /usr/local/share/perl/5.10.1/LWP/UserAgent.pm line +283 LWP::UserAgent::request('LWP::UserAgent=HASH(0x29c7ef8)', 'HTTP:: +Request=HASH(0x29eaee8)') called at ./lookerupper2.pl line 16 at /usr +/local/lib/perl/5.10.1/Net/SSL.pm line 222 Net::SSL::read('LWP::Proto +col::https::Socket=GLOB(0x2c18990)', '', 1024, 0) called at /usr/loca +l/share/perl/5.10.1/LWP/Protocol/http.pm line 305 LWP::Protocol::http +::request('LWP::Protocol::https=HASH(0x2a658f8)', 'HTTP::Request=HASH +(0x29eaee8)', undef, undef, undef, 180) called at /usr/local/share/pe +rl/5.10.1/LWP/UserAgent.pm line 193 eval {...} called at /usr/local/s +hare/perl/5.10.1/LWP/UserAgent.pm line 192 LWP::UserAgent::send_reque +st('LWP::UserAgent=HASH(0x29c7ef8)', 'HTTP::Request=HASH(0x29eaee8)', + undef, undef) called at /usr/local/share/perl/5.10.1/LWP/UserAgent.p +m line 275 LWP::UserAgent::simple_request('LWP::UserAgent=HASH(0x29c7 +ef8)', 'HTTP::Request=HASH(0x29eaee8)', undef, undef) called at /usr/ +local/share/perl/5.10.1/LWP/UserAgent.pm line 283 LWP::UserAgent::req +uest('LWP::UserAgent=HASH(0x29c7ef8)', 'HTTP::Request=HASH(0x29eaee8) +') called at ./lookerupper2.pl line 16

I used the Mozilla LiveHTTP Headers plugin to get a new JSESSIONID and replaced it in the code you provided but it still does the same thing: terminates with "code:500" and outputs the above into postcontent.html. I also tried passing the entire string for "Cookie" that I found in the HTTP Headers. That is, I tried a line that reads like this:

$req->header("Cookie"=>"__utma=189426622.1597458921.1305692566.1305781 +465.1305829478.4; __utmz=189426622.1305692566.1.1.utmcsr=google|utmcc +n=(organic)|utmcmd=organic|utmctr=dc%20superior%20court");

Same problem. Out of curiousity, I tried looking up a case in Firefox with javascript turned off and it worked fine. I also tried looking up a case in Lynx and it worked fine.