cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SSL with WriteMemoryCallback function to get the response

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 4 Apr 2013 10:11:21 +0200 (CEST)

On Thu, 4 Apr 2013, Ajay Tanpure wrote:

> I am using SSL. So server will send the encrypted data. chunk(In my case)
> will point to the memory location where data received from the server is
> present. But data pointed by chunk is still encrypted by SSL/TLS encryption
> or it is actual data?

You get the payload data the server sends to you. libcurl handle all the
transport magic so the protocol is not important to the write callback. HTTPS
will of course (also) be handled transparently and your callback gets data
decrypted and fine.

> I am getting some wrong data in chunk when i use the SSL,

Well, define "wrong" in this context and we might be able to help you better.

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