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. Advertisements

  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. Advertisements

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. =?Utf-8?B?QmVu?=

    error 404 page not found after appling patch

    =?Utf-8?B?QmVu?=, Oct 13, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    613
    =?Utf-8?B?QmVu?=
    Oct 19, 2005
  2. JB
    Replies:
    4
    Views:
    355
    George Ter-Saakov
    Mar 8, 2007
  3. Replies:
    0
    Views:
    565
  4. Deven
    Replies:
    0
    Views:
    615
    Deven
    Nov 26, 2008
  5. Juan Marcial
    Replies:
    5
    Views:
    2,383
    Juan T. Llibre
    Dec 13, 2008
  6. Deven
    Replies:
    5
    Views:
    8,166
    Deven
    Aug 2, 2009
  7. Replies:
    5
    Views:
    376
  8. Replies:
    4
    Views:
    327
    Tim Slattery
    Feb 7, 2007
Loading...