cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: multi_socket interface usage

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 14 Jul 2016 23:13:19 +0200 (CEST)

On Thu, 14 Jul 2016, smruti kumari wrote:

> 1. Could you please suggest me the way I can get the message in application
> ?

Use the CURLOPT_WRITEFUNCTION [1] callback.

> 2. How can I get the response code in my application ?

Use curl_easy_getinfo() with CURLINFO_RESPONSE_CODE [2]

[1] = https://curl.haxx.se/libcurl/c/CURLOPT_WRITEFUNCTION.html
[2] = https://curl.haxx.se/libcurl/c/CURLINFO_RESPONSE_CODE.html

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-07-14