I want to implement RESTful Web Service using C language. What is the best way of doing networking and all related stuff in C language? Is there any library for performing the same?
A RESTful API is not really hard to create, many languages already have framework to do this (C#, JEE, ...). In C, you will have to do everything yourself.
I had to did it for a school project some month ago. You just need a few things :
Theses links could help your to find some more details :
You can write your application as a FastCGI server, which is relatively simple -- your program will basically consist of a loop which calls FCGI_Accept(), processes parameters and writes out the response for each request.
This FastCGI server can then be run behind a web server (Apache, nginx...) that handles http, ssl, authentication, serve static files etc. so you don't have to deal with all that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With