Is there a way I can see what exactly is sent by curl in the post? With the body and headers and all.

Thanks.

Recommended Answers

All 3 Replies

Got it.

curl_setopt($ch, CURLINFO_HEADER_OUT, true);
.
.
var_dump(curl_getinfo($ch,CURLINFO_HEADER_OUT));

ahh cool. :)

I was thinking from the server side. didnt even think from the curl request

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.