How to send a HTTP "Bad Request" Response
- by michael
Hi,
I am writing a C program which needs to send back a HTTP Bad Response.
This is what I write to socket.
HTTP/1.1 400 Bad Request\r\n
Connection: close\r\n
\r\n
My question is why the broswer still spinning (like appear it is still loading something?
Am I missing header in the Http response? OR I miss something else?
Thank you.