http://msdn.microsoft.com/en-us/library/system.web.httpresponse.aspx
How do I set the content in the body?
HTTP/1.1 400 Bad Request
Content-Type: application/json;charset=UTF-8
Cache-Control: no-store
Pragma: no-cache
{
"message":"response content example"
}
Use the Output
and OutputStream
properties, or the Write
method.
myHttpResponse.Write("\"{\"message\":\"response content example\"}\"");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With