curl-library
Re: how to capture http response number?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 22 Apr 2016 00:03:32 +0200 (CEST)
Date: Fri, 22 Apr 2016 00:03:32 +0200 (CEST)
On Thu, 21 Apr 2016, Kman Devnull wrote:
> After the line,
> result = curl_easy_perform(curl);
>
> the server returns a "response" something like 291236 - I just want to be
> able to capture this and print it in my log.
Retrieve the response in a buffer and check that? Like the getinmemory.c
example perhaps?
https://curl.haxx.se/libcurl/c/getinmemory.html
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2016-04-22