How to use curl in a C program? Need help with implementation! or Struggling with how to use curl in

20 Replies, 950 Views

OP Reply:

Wow, thanks everyone! This is super helpful.

I got the basic GET working with your examples—turns out I wasn’t checking the return codes properly. Still getting a crash when I try to POST, though.

@user who mentioned `CURLOPT_POSTFIELDS`, do I need to set anything else for POST requests? Like headers or something?

Also, the `CURLOPT_VERBOSE` tip saved me so much time. Cheers!



Users browsing this thread: 1 Guest(s)