curl-library
SSL Problems
Date: Mon, 12 Nov 2001 14:52:10 -0600
I don't know if this has been talked about before (didn't see anything
in my search of the archives). And maybe this is a dumb question, but
alas I can't find anything to help me.
I am trying to write a OLE component to be used on Win32 with IIS and
ASPs.
When I try to use SSL twice in a row (without restarting the IIS server)
it returns an error of
SSL: couldn't create a context!
I was wondering if there is known issue with this? Is it related to the
caching of SSL contexts?
Pertinent info:
curl 7.9 (win32) libcurl 7.9 (OpenSSL 0.9.6b) compiled statically into
my COM dll.
NT 4.0 Server (IIS 4)
Things I have tried:
global init and cleanup in con/destructor, new curl everytime
global init and cleanup everytime, new curl everytime
global init and cleanup in con/destructor, new curl in
constructor, delete curl in destructor.
options being set:
curl_easy_setopt(curlHandle, CURLOPT_URL, host);
curl_easy_setopt(curlHandle, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(curlHandle, CURLOPT_NOPROGRESS, 1);
curl_easy_setopt(curlHandle, CURLOPT_SSL_VERIFYHOST, 1);
curl_easy_setopt(curlHandle, CURLOPT_MUTE, 1);
curl_easy_setopt(curlHandle, CURLOPT_ERRORBUFFER, lastError);
/*Shamelessly stolen from inmemory example*/
curl_easy_setopt(curlHandle, CURLOPT_HEADERFUNCTION,
WriteMemoryCallback);
curl_easy_setopt(curlHandle, CURLOPT_WRITEFUNCTION,
WriteMemoryCallback);
curl_easy_setopt(curlHandle, CURLOPT_FILE, (void *)&body);
curl_easy_setopt(curlHandle, CURLOPT_WRITEHEADER, (void
*)&header);
Any ideas?
Sorry if this is off topic, I am new to the list.
Sam Listopad
PS In case you were wondering why one would want to do this, I am
trying to post raw XML to a page from an ASP.
Received on 2001-11-12