Eugeny89
Eugeny89

Reputation: 3731

print curl request

To see what's wrong I need to print request made by curl. How can I do that? Please do not advise doing

curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);

I'm posting multipart message and it does not print the whole request.

Upvotes: 5

Views: 10832

Answers (1)

Daniel Stenberg
Daniel Stenberg

Reputation: 58034

CURLOPT_DEBUGFUNCTION is your friend.

See these examples: debug.c and multi-debugcallback.c

Upvotes: 9

Related Questions