Tuesday 15 June 2010

Simple HTTP Server in C - How to response to Browser? -


My server is sending sample feedback headers to the body for a request:

  Fixed letters \ n "" & html; Gt; \ N "" & lt; Body & gt; \ N "" & lt; H1 & gt; No, \ n "" \ n "" Type of content: text / html \ n "" \ n "" & lt; Html & gt; \ N "" & lt; Body & gt;  \ n "" & lt; / Body & gt; Send it correctly (but not until I cancel the transfer) Firefox loading.  

The Firefox plugin HttpRequestHelper shows this:

Obtain the local host: 6666

- Feedback - 404 Not Found Content-Type: Text / html

Why the content has not been loaded?

After sending Ia try to flush the socket and / or off.

No comments:

Post a Comment