Print request

To see what is wrong, I need to print the request made by curl. How can i do this? Please do not advise doing

curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); 

I am sending a multi-page message and does not print the entire request.

+4
source share
1 answer

CURLOPT_DEBUGFUNCTION is your friend.

See the following examples: debug.c and multi-debugcallback.c

+7
source

Source: https://habr.com/ru/post/1387740/


All Articles