|
|
setHeader is based on Hashtable |
I'm using HttpServletRespone.setHeader to set pricing information (used by
a specialized HttpClient). Due to the internal used of Hashtable,
multiple
setHeader("pricing", "leftframe=FREE");
setHeader("pricing", "rightframe=COST");
will cause only the last header to be send.
javaAThogiDOTde | |
| Actually, it is your implementation and not Apache JServ, so do not expect to see this feature added.
First off, you should never set a HTTP header on your own other than having it as X-. Please read the HTTP specs regarding this. Also, how is Apache JServ supposed to know how you want the data deliminated between the items? There is nothing in the JSDK that would allow us to get/set this information in a non-servlet engine specific way.
I really suggest that you take another look at what you are trying to do here. In 99.99% of the cases, you should not have to define your own HTTP headers. | |
| I didn't dig too deep into the Apache module and not at all into the ajpv* protocol, but I though setting multiple cookies should be similar (which are stored in a vector). The need to this kind of header was initiated by a ´document'-provider who accesses our documents and expects the pricing information by header. | |
| [Append to This Answer] |
| Previous: |
|
| Next: |
|
| ||||||||||