in reply to Re: Re: LWP HTTPS POST returns 500 EOF
in thread LWP HTTPS POST returns 500 EOF

the telnet example was to show that there were a connection problem. for me the server is (still) not responding, but anyway, if you want to test some connection over ssl you need no telnet but openssl and type something like :
openssl s_client -connect login1.swipnet.se:443 POST /login.php username=xxxxxxxxxx;password=yyyyyy;
note the CR/LF at the end.
I recommend you read more about HTTP if you need to debug such transaction, the next step in debugging is to use a proxy that will do the encryption and you can sniff what happend between your client machine and the proxy , quite tricky anyway.
--
dominix

Replies are listed 'Best First'.
Re: Re: Re: Re: LWP HTTPS POST returns 500 EOF
by epljsod (Initiate) on Feb 26, 2004 at 21:36 UTC
    I think that it is not accepted to connect to the server from outside of the local network, probably a security issue.
    Anyway, I am able to connect with openssl and the server responds with following:
    [johan@aca80065 ~]$ openssl s_client -connect login1.swipnet.se:443 CONNECTED(00000003) Pdepth=0 /C=SE/ST=Stockholm/L=Kista/O=Tele2 Sverige AB/CN=login1.swipn +et.se/emailAddress=staff@swip.net verify error:num=20:unable to get local issuer certificate verify return:1 depth=0 /C=SE/ST=Stockholm/L=Kista/O=Tele2 Sverige AB/CN=login1.swipne +t.se/emailAddress=staff@swip.net verify error:num=27:certificate not trusted verify return:1 depth=0 /C=SE/ST=Stockholm/L=Kista/O=Tele2 Sverige AB/CN=login1.swipne +t.se/emailAddress=staff@swip.net verify error:num=21:unable to verify the first certificate verify return:1 634:error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block t +ype is not 01:rsa_pk1.c:100: 634:error:04067072:rsa routines:RSA_EAY_PUBLIC_DECRYPT:padding check f +ailed:rsa_eay.c:464: 634:error:1408D07B:SSL routines:SSL3_GET_KEY_EXCHANGE:bad signature:s3 +_clnt.c:1185: [johan@aca80065 ~]$ POST /login.php Please enter content (application/x-www-form-urlencoded) to be POSTed: username=aahha;password=errr;
    My problem (quite embarrassing) is the same as when I tried to use lwp-request. When the server asks for content and I enter it, I am unable to finish (send) the content(username and password). I have pressed Enter after the input line.

    Best regards
    /Johan