I was trying to use POST method(form submission of username/password) on a 'https' authentication URL, and I get Error Occurred,500 unexpected EOF before status line seen.

When I enter wrong username/password, it comes up with the page saying "you entered wrong username/password". When the username/password are correct I get the error...

From the browser it works fine..

I have Crypt & OpenSSL installed in my machine and I put cookie jar & time out as well in my code.

Following are the things I get when I use LWP::Debug '+'
=========================================

LWP::Protocol::http::request: POST /xyz.form HTTP/1.0 Host: www.abcdxyz.com User-Agent: Mozilla/4.61 [en] (WinNT; U) libwww-perl/5.48 Content-Length: 60 Content-Type: application/x-www-form-urlencoded Allowed: GET HEAD PUT LWP::Protocol::http::request: POST /xyz.form HTTP/1.0 Host: www.abcdxyz.com User-Agent: Mozilla/4.61 [en] (WinNT; U) libwww-perl/5.48 Content-Length: 60 Content-Type: application/x-www-form-urlencoded Allowed: GET HEAD PUT 500 (Internal Server Error) unexpected EOF before status line seen Client-Date: Fri, 12 Jul 2002 02:17:34 GMT An Error Occurred 500 unexpected EOF before status line seen

=========================================
Can any one help me in this regard. Your help is really appreciated.

In reply to LWP/HTTPS Error: 500 unexpected EOF before status line seen by payyans

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.