I have tried using the way you said but it still does not have any effect on the client browser? what is the problem?
I have tried this:
"HTTP/1.1 500 Server Error\nDate: Fri, 31 Dec 1999 23:59:59 GMT\nContent-Type: text/html\nContent-Length: 219"
And this:
"HTTP/1.1 500 Server...
Currently i am developing a web server application in console. I am using a browser to connect to the host running this application. The server is able to receive the http request from the browser. The problem come in, what should i send in response? Below is a response i write but the browser...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.