in reply to LWP/HTTPS Error: 500 unexpected EOF before status line seen

A 500 Error is (as it says) an "Internal Server Error" ... there isn't neccessarily anything wrong with your client.

In situations like this, where it "works from a browser" the server side application is typically epecting some subtle behavior from a particular web browser (ie: a certain User-Agent)

  • Comment on Re: LWP/HTTPS Error: 500 unexpected EOF before status line seen

Replies are listed 'Best First'.
Re: Re: LWP/HTTPS Error: 500 unexpected EOF before status line seen
by payyans (Initiate) on Jul 12, 2002 at 18:42 UTC
    Do you get the same results when you try to retrieve a static HTML page from the same server using SSL/HTTP-Auth ?
    No, I can retrieve a static page without any problem(I tried the login page. Do you have access to the server logs to see what it's logging when you try to hit it from your script?
    No, unfortunately I don't have access do you have access to the source of whatever server based application you are loading?
    No, but I know it is an asp based application.


    Following is the source of the HTML
    <FORM name="frmLogin" METHOD=POST ACTION="/abclogin.form" onsubmit="re +turn(doSubmit());"> <td align=left><INPUT TYPE=TEXT NAME="usernm" VALUE="" MAXLENGTH=128 S +IZE=7></td> </tr> <tr> <th align=right>PIN:</th> <td align=left><INPUT TYPE=password NAME="pswd" VALUE="" MAXLENGTH=128 + SIZE=12> </td> </tr> <tr> <td align=center colspan=2><INPUT TYPE=submit NAME="buttonSubmit" VALU +E=" OK "onClick="if (checkCookiesAtField(username)) return true; el +se return false;"></td> </tr>
    Following is my code which do the POST, can u check anything wrong in it,
    $auth_url = "https://www.auth-abc.com/abclogin.form"; my $request = POST $auth_url, [ 'usernm' => 'myname', 'pswd' => 'mypassword', 'buttonSubmit' => ' OK ' ];