Folks,
My query is regarding the what is desired behavior of
CoreConnectionPNames.MAX_LINE_LENGTH.
I had set the params.setIntParameter(CoreConnectionPNames.MAX_LINE_LENGTH,
100) and I see that those headers larger than 100 is getting added to the
response headers.
Further looking into to the code i figured out that it is only handled for a
folded headers. This is an HttpClient specific setting isn't it? I checked
the documentation as well there is nothing mentioned about the behavior for
folded headers.
*********************************************************************
org.apache.http.impl.AbstractHttpServerConnection.receiveRequestHeader()
org.apache.http.impl.io.AbstractMessageParser.parse()
org.apache.http.impl.io.AbstractMessageParser.parseHeaders(SessionInputBuffer,
int, int, LineParser, List)
// Parse the header name and value
// Check for folded headers first
// Detect LWS-char see HTTP/1.0 or HTTP/1.1 Section 2.2
// discussion on folded headers
if ((current.charAt(0) == ' ' || current.charAt(0) == '\t') &&
previous != null) {
....
if (maxLineLen > 0
&& previous.length() + 1 + current.length() - i >
maxLineLen) {
throw new IOException("Maximum line length limit
exceeded");
....
}
--
View this message in context:
http://old.nabble.com/CoreConnectionPNames.MAX_LINE_LENGTH-processing-tp33457329p33457329.html
Sent from the HttpClient-User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]