cURL / Mailing Lists / curl-library / Single Mail

curl-library

SSL with WriteMemoryCallback function to get the response

From: Ajay Tanpure <ajaytanpure92_at_gmail.com>
Date: Thu, 4 Apr 2013 01:49:13 +0530

Hello I am developing an application over HTTPS.
My first handshakes related to SSL/TLS takes successfully.

But the problem is in the response, which i store using function as

  *curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);*
* curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk);*
*
*
as given in http://curl.haxx.se/libcurl/c/getinmemory.html

But i didn't get the actual data that my application need from chunk
(writeMemorycallback) and my application terminates.

I think the data in the memory (chunk) is still encrypted and thats why my
application terminates.
(Problem is *NOT* with server, i tested with command line curl as curl -kvv
https://192.168.0.102:443/a.html and it works)
What I am doing wrong?
How to deal with this?
Thank you.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-03