How To Send Http/1.0 404 Not Found Error Page In C

Discussion in 'C Programming' started by searcher1234, Oct 31, 2004.

  1. searcher1234

    searcher1234 Guest

    I have wrote a web server by C language.
    but I don't know how to send back error page to web browser if user type
    wrong web address or name that will show HTTP/1.0 404 NOT FOUND.

    One more is how I can stop server socket sending rubbish code if the
    requested files are sent competely.

    Thanks
    searcher1234, Oct 31, 2004
    #1
    1. Advertising

  2. searcher1234 wrote:
    > I have wrote a web server by C language.
    > but I don't know how to send back error page to web browser if user type
    > wrong web address or name that will show HTTP/1.0 404 NOT FOUND.
    >
    > One more is how I can stop server socket sending rubbish code if the
    > requested files are sent competely.
    >
    > Thanks
    >
    >

    Probably off-topic. May be comp.unix.programmer or any other n.g.
    specific to your implementation that talks about sockets.

    --
    Karthik. http://akktech.blogspot.com .
    'Remove _nospamplz from my email to mail me.'
    Karthik Kumar, Oct 31, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    427
  2. Deven
    Replies:
    0
    Views:
    511
    Deven
    Nov 26, 2008
  3. Juan Marcial
    Replies:
    5
    Views:
    2,223
    Juan T. Llibre
    Dec 13, 2008
  4. Deven
    Replies:
    5
    Views:
    7,658
    Deven
    Aug 2, 2009
  5. Replies:
    5
    Views:
    212
Loading...

Share This Page