cURL / Mailing Lists / curl-library / Single Mail

curl-library

Still can't do HTTPS POST

From: Mark Philip Erikson <s1278644_at_cedarville.edu>
Date: Fri, 25 Apr 2003 19:42:42 -0400

I'm still having the same issue with trying to do an HTTPS post to my
school's proxy server. I've tried it using both PyCurl and Curl in C++,
with the same error messages both ways. I'm setting up the following
options, along with printing the result code and the error buffer:

        curl_easy_setopt(curl, CURLOPT_URL,
"https://proxy3.cedarville.edu/BM-Login/auth-cup");
        
        char* params = *bunch of form info URL-encoded*
        curl_easy_setopt(curl, CURLOPT_SSLVERSION, 3);
        curl_easy_setopt(curl, CURLOPT_POSTFIELDS, params);
        curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
        curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
        curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
        
        res = curl_easy_perform(curl);

Which gives me:

About to connect() to proxy3.cedarville.edu:443
Connected to proxy3.cedarville.edu (163.11.83.13) port 443
SSL connection using DES-CBC3-SHA
Server certificate:
         subject: /O=CEDARVILLE/CN=163.11.83.13
         start date: 2002-10-09 15:14:00 GMT
         expire date: 2036-02-03 23:59:00 GMT
         issuer: /C=US/O=CEDARVILLE
POST /BM-Login/auth-cup HTTP/1.1
Host: proxy3.cedarville.edu
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Length: 110
Content-Type: application/x-www-form-urlencoded

SSL read error: 5

Connection #0 left intact

Res = 56
Error: SSL read error: 5
Closing connection #0

Using Python, I've also tried using the M2Crypto OpenSSL wrapper, which
includes HTTPS ability. It gives me essentially the same output as far
as indicating SSL connection, sending headers, etc. M2Crypto does
indicate that the postfields have been sent, whereas here I can't tell
whether that's actually happened or not. M2Crypto then dies when I try
to get a response, but that's not really relevent to this mailing list.

So. What I'm asking is, does anyone have any idea WHY Curl seems to be
dying at this point, whether it is actually sending the post information
or not, and what can be done to fix it? I'm completely stuck on this
project until I can solve this. It's just a personal project, not work,
but I'd _really_ like to get this to work.

Thanks in advance for any help.

Mark Erikson

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-04-26