Dear Monks,

A few weeks ago, my module [Finance::Bank::ID::BCA] started failing to connect to the bank site https://ibank.klikbca.com/ with a Connection Reset error. The module uses [WWW::Mechanize] (which is a subclass of LWP::UserAgent). A quick check with curl seems to indicate that the server now denies HTTP/1.0 protocol:

% curl -v https://ibank.klikbca.com/ ; # success % curl --http1.0 -v https://ibank.klikbca.com/ ; # fails

Using wget also fails.

But checking with Gepok (gepok.client_protocol) indicates that wget as well as LWP already uses HTTP/1.1 instead of HTTP/1.0 to the server.

Also worth noting, don't know if this is correct, my Debian Squeeze wget seems to be only using TLSv1 (from playing with --secure-protocol option) while curl seems to use SSLv3 (looking at -v output).

Any pointer is appreciated on how to make LWP work with this site. As a last resort I might use curl (via [WWW::Curl], for example) but I'll probably need to replace WWW::Mechanize too, which will be painful.


In reply to Investigating connection reset with LWP to an https site by sedusedan

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.