try with debug-mode on:

LWP::ConsoleLogger::Easy::debug_ua($myUA, 6); $IO::Socket::SSL::DEBUG = 3; # SSL debuggging mode

Long shot: also, ssl_opts supports SSL_version, e.g. SSL_version => 'TLSv1' Maybe some incompatibility of versions that you/them can't handle?

But before that make sure your useragent string is set to something sensible and not 'www-perl'... And also set your LWP timeout to something long (seconds), $myUA->timeout(100);, oh and that you upgrade your modules if you can.

I have also been troubled with 500 Server closed connection without sending any data back. I have come to an unfounded conclusion: maybe it has nothing to do with SSL because I can see the handshakes, the sockets opening etc. So, just maybe that's their way to tell me to bugger off.

Btw, if in your headers you see 'Internal response', that's LWP issuing that and not the server. (I mean the wording of the error does not come from the Server - obviously if it's a timeout).

bw, bliako


In reply to Re: LWP::Useragent doesn't work on certain HTTPS websites? by bliako
in thread LWP::Useragent doesn't work on certain HTTPS websites? by sectokia

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.