hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera" <asan...@wso2.com>
Subject "<" character in a response header
Date Wed, 21 Mar 2007 19:35:32 GMT
Hi

Could anyone tell me if the "<" character is allowed in a http response? 
According to 
http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.2 I didn't 
notice something like that..

My problem is that if I try to add a response header that contains the 
"<" character (say response.setHeader("lll", "hh<ff"); ) the output gets 
garbled. i.e.

HTTP/1.1 200 OK
lll: hh<ffContent-Type: text/xml; charset=UTF-8Date: Wed, 21 Mar 2007 
19:31:06 GMTServer: Synapse-HttpComponents-NIOTransfer-Encoding: chunked
451

vs

HTTP/1.1 200 OK
Content-Type: text/xml; charset=UTF-8
Date: Wed, 21 Mar 2007 19:31:38 GMT
Server: Synapse-HttpComponents-NIO
Transfer-Encoding: chunked
 
450

if that header with the "<" was not set. Could someone explain this to me?
thanks
asankha

---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Mime
View raw message