How to make http call from C

C

Chris McDonald

SP said:
I need to make a http request and manage the response.
How can I do it in C?

While not provided by standard C, and assuming you're running under an
operating system, I suggest that rather than trying to do it directly
in C, that you spawn an external process to run the 'curl' application,
and send its output to a file or read it back through a file pointer.
If you insist on doing it all in C, read up on the 'libcurl' library.
 
K

Keith Thompson

SP said:
I need to make a http request and manage the response.
How can I do it in C?

By using system-specific techniques that are off-topic in this
newsgroup. Try a newsgroup for your operating system.
 
J

John Bode

SP said:
I need to make a http request and manage the response.
How can I do it in C?

Thanks

Unfortunately, C doesn't provide built-in support for network
communications; you'll have to rely on a third-party library or system
calls to accomplish it.
 
D

deepak

SP said:
I need to make a http request and manage the response.
How can I do it in C?

Thanks

Create the HTTP header in proper format using C
and extract the response properly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,184
Messages
2,570,978
Members
47,561
Latest member
gjsign

Latest Threads

Top