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

Hi all!
The problem has finally been solved. I would like to thank every one for your effort and contributions. I could not have solved the problem without your help!
After the laborations with curl, I felt that the problem must be connected to the ciphering. I knew that the only way it worked with curl was when I set the -2 option forcing it to use SSL ver 2. Therefore I today read some more about the cihpering in LWP and tried to set SSL ver 2 also in LWP ($ENV{HTTPS_VERSION} = '2') and tada, it finally worked :-) Actually, I already tried this option yesterday, but then I ran through the recently installed proxy and that probably screwed thing up somehow.

Hope this thread can help others with same problem. I have certainly learned a lot while struggling with this.

Best regards
/Johan

Replies are listed 'Best First'.
Re^3: LWP HTTPS POST returns 500 EOF
by FrankRizzo (Acolyte) on Aug 19, 2005 at 12:36 UTC
    I'm having this exact problem, and none of the suggestions in this thread have helped. I'm also having a fight with curl. Would someone who has curl working properly give this a shot?
    curl -d '__VIEWSTATE=dDw1MzgxO3Q8O2w8aTwwPjs\x2BO2w8dDw7bDxpPDEzPjs\x2 +BO2w8dDw7bDxpPDk\x2BOz47bDx0PDtsPGk8OT47PjtsPHQ8O2w8aTw3Pjs\x2BO2w8dD +w7bDxpPDA\x2BOz47bDx0PDtsPGk8MD47PjtsPHQ8O2w8aTwxPjs\x2BO2w8dDw7bDxpP +DI\x2BO2k8Mz47aTw0PjtpPDU\x2BO2k8Nj47aTw3PjtpPDg\x2BO2k8OT47aTwxMD47P +jtsPHQ8cDxwPGw8X2N0bDVfX2N0bDNfX2N0bDBfRm9ybUl0ZW1fMjA1MTA3NF9SZXF1aX +JlZEZpZWxkVmFsaWRhdG9yX19jdGw1X19jdGwzX19jdGwwX0Zvcm1JdGVtXzIwNTEwNzR +fTGFiZWxfRm9yZUNvbG9yO0Rpc3BsYXk7PjtsPDI8XGU\x2BO1N5c3RlbS5XZWIuVUkuV +2ViQ29udHJvbHMuVmFsaWRhdG9yRGlzcGxheSwgU3lzdGVtLldlYiwgVmVyc2lvbj0xLj +AuNTAwMC4wLCBDdWx0dXJlPW5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ctl3\x3A_ctl0\x3AFormItem_2051078=State +' -d '_ctl5\x3A_ctl3\x3A_ctl0\x3AFormItem_2051079=90210' -d '_ctl5\x3 +A_ctl3\x3A_ctl0\x3AFormItem_2051080=joe@netcom.com' -d '_ctl5\x3A_ctl +3\x3A_ctl0\x3AFormItem_2051081=213-312-2132' -d '_ctl5\x3A_ctl3\x3A_c +tl0\x3AFormItem_2051082=Color' -d '_ctl5\x3A_ctl3\x3A_ctl0\x3AFormIte +m_2051083=Animal' -d '_ctl5\x3A_ctl3\x3A_ctl0\x3AFormItem_2051084=E-m +ail' -d '_ctl5\x3A_ctl3\x3A_ctl0\x3AFormItem_2051085="New Car"' -d '_ +ctl5\x3A_ctl3\x3A_ctl0\x3AFormItem_2051086="MINI Cooper"' -d '_ctl5\x +3A_ctl3\x3A_ctl0\x3AFormItem_2051087=Message' -d '_ctl5\x3A_ctl3\x3A_ +ctl0\x3AForm_121155_Submit=Submit' --trace out.txt https://secure.web +makerx.net/Contact-Us.aspx?hostname=billjacobsmini.com
    When I run it, I get "curl: (35) SSL: couldn't set callback!". I saved off the html from the website in question, and modified the post method to post to my local webserver, which was running the CGI app from the LWP book, which showed all the stuff being POSTed. Yes, they actually USE that crappy long string, and it's always the same. When I try to POST to the real site, I get "500 Internal Server Error". ANY help is appreciated!