Ask Any Question

Has anyone ever written a code for an http server in c or unix shell?

Yasir I - 2008-12-27 12:43:34 - Programming Design

I have tried writing it but it doesn't run properly on the unix shell. Please help me, anyone?


Best Answer:

Simple CGI script that should work (so long as your webserver is configured correctly): #!/bin/sh echo "Content-Type: text/html" echo whoami

Answers:

Gshizzle - 2008-12-27 12:49:40
ive tried to write it in c, but i couldnt get it to run either. srry. try html or xml. theyre pretty cool - you can itegrate c or unix into it along with java and script. i wasnt very successful. good luck tho!

decjr - 2008-12-27 13:07:42
your description is very terse. google CGI (common gateway interface) programming - that's how a web server calls an external app, be it in c, shell, perl, etc http://httpd.apache.org/docs/2.2/howto/cgi.html

snabby - 2008-12-27 16:58:26
Simple CGI script that should work (so long as your webserver is configured correctly): #!/bin/sh echo "Content-Type: text/html" echo whoami

map google sitemap
© 2008 4answer.net
Powered by yahoo answer