I think we should process the response even if the Content-Type header is
not present.


On Tue, Nov 5, 2013 at 6:31 PM, Nufail Mohamed <[email protected]> wrote:

> Hi,
>
> If a server responds with 'HTTP 500 Internal Server Error' is it valid to
> have an empty body with no Content-Type Header?
>
> For example is the following a valid response?
>
> HTTP/1.1 500 Internal Server Error
> Connection: close
> Content-Length: 0
> Date: Tue, 05 Nov 2013 11:25:20 GMT
> Server: WSO2 Carbon Server
>
>
> In Axis2 org.apache.axis2.transport.http.HTTPSender#handleResponse() , in
> the case of http 500, the response is processed only if Content-Type Header
> is present. So is the above a valid scenario or is it required to have
> Content-Type header for HTTP 500 response?
>
>
> Thanks,
> Nufail
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>*
*email: **[email protected]* <[email protected]>
* cell: +94 77 3320919 blog: **http://blog.afkham.org*<http://blog.afkham.org>
*twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
* linked-in: **http://lk.linkedin.com/in/afkhamazeez
<http://lk.linkedin.com/in/afkhamazeez>*

*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to