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

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

This entry was posted in Programming and tagged , , , , , . Bookmark the permalink.

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

  1. Gshizzle says:

    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!

  2. decjr says:

    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

  3. snabby says:

    Simple CGI script that should work (so long as your webserver is configured correctly):

    #!/bin/sh

    echo “Content-Type: text/html”
    echo

    whoami

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>