How to use C as a scripting language?
james at cloud9.co.uk
Sat Dec 3 13:13:18 UTC 2011
On 03/12/11 12:44, etrader wrote:
> Thanks James!
> The idea of building a mini-webserver for C programming is brilliant. I
> searched a lot to find a guidance for building very basic web server in
> C (obviously I prefer to write the web server in C with native API for C
> files); but I was unable to find. All web servers in C are advanced
> applications such as nginx. Could you please give me a hint how to start
> to write a mini web server in C.
libevent has all of the hard stuff done for you. You basically just
need to use it's API to get hold of all the HTTP request information
and to let it handle the response to the user.
More information about the nginx