Obviously the 512 byte limit is to short. Any idea what a good assumption would be for the maximum size of a single HTTP header? 1k? 2k?
Hannes Lin, Yaxiong wrote: >I am getting the "HTTP Header too long" error on the WebServer (running on >NT) when processing request from the client runing on zOS. The same client >java app running on NT does not cause this error on the same WebServer. > >I looked at the source code (WebServer.java), the IOException (HTTP Header >too long) is thrown when the buffer size is > 512. > >My question is: why the same java client code causes the buffer overflow on >the same WebServer (on NT) when run on the zOS (IBM) but not when run on NT? >And how do I get around this problem? > > >Thanks in advance for the help. > >- Yaxiong Lin > Mayo Clinic > Rochester, MN 55905 >