You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Techie India <it...@gmail.com> on 2007/10/12 09:48:01 UTC

Need some help on HttpCore

Hi,

Does HttpCore provides something similar, the following properties which are
supported by tomcat.

1)*maxPostSize:* The maximum size in bytes of the POST which will be handled
by the container FORM URL parameter parsing.
2)*URIEncoding: *This specifies the character encoding used to decode the
URI bytes, after %xx decoding the URL. If not specified, ISO-8859-1 will be
used.
3)*bufferSize:* The size (in bytes) of the buffer to be provided for input
streams created by this connector. By default, buffers of 2048 bytes will be
provided.
4)*compressableMimeType:* The value is a comma separated list of MIME types
for which HTTP compression may be used.
5)*maxHttpHeaderSize:* The maximum size of the request and response HTTP
header, specified in bytes. If not specified, this attribute is set to 4096
(4 KB).
6)*maxKeepAliveRequests:* The maximum number of HTTP requests which can be
pipelined until the connection is closed by the server.


Thanks

Re: Need some help on HttpCore

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Fri, 2007-10-12 at 13:18 +0530, Techie India wrote:
> Hi,
> 
> Does HttpCore provides something similar, the following properties which are
> supported by tomcat.
> 
> 1)*maxPostSize:* The maximum size in bytes of the POST which will be handled
> by the container FORM URL parameter parsing.

HttpCore does not impose any limit on the size of content body

> 2)*URIEncoding: *This specifies the character encoding used to decode the
> URI bytes, after %xx decoding the URL. If not specified, ISO-8859-1 will be
> used.

HttpCore makes no attempts to parse URIs, so you can apply any logic
that fits best for your application. HttpClient 4.0 (based on HttpCore)
uses standard java.net.URI class for that end.

> 3)*bufferSize:* The size (in bytes) of the buffer to be provided for input
> streams created by this connector. By default, buffers of 2048 bytes will be
> provided.

'http.socket.buffer-size'

If not explicitly set HttpCore will use the SO_RCVBUF / SO_SNDBUF values
returned by the underlying socket.

> 4)*compressableMimeType:* The value is a comma separated list of MIME types
> for which HTTP compression may be used.

Any custom content compression / decompression logic can be (more or
less) easily injected using protocol interceptors 

http://svn.apache.org/repos/asf/jakarta/httpcomponents/httpcore/trunk/contrib/src/main/java/org/apache/http/contrib/compress/

> 5)*maxHttpHeaderSize:* The maximum size of the request and response HTTP
> header, specified in bytes. If not specified, this attribute is set to 4096
> (4 KB).

'http.connection.max-line-length'

Unlimited per default

> 6)*maxKeepAliveRequests:* The maximum number of HTTP requests which can be
> pipelined until the connection is closed by the server.
> 

HttpCore connection objects support HttpConnectionMetrics interface,
which can be used to obtain request counts. One can provide a custom
ConnectionReuseStrategy that drops connections after a specific number
of requests. 

Unlimited per default

Oleg

> 
> 
> Thanks


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


Need some help on HttpCore

Posted by Techie India <it...@gmail.com>.
Hi,

Does HttpCore provides something similar, the following properties which are
supported by tomcat.

1) *maxPostSize:* The maximum size in bytes of the POST which will be
handled by the container FORM URL parameter parsing.
2)*URIEncoding: *This specifies the character encoding used to decode the
URI bytes, after %xx decoding the URL. If not specified, ISO-8859-1 will be
used.
3)*bufferSize:* The size (in bytes) of the buffer to be provided for input
streams created by this connector. By default, buffers of 2048 bytes will be
provided.
4)*compressableMimeType: *The value is a comma separated list of MIME types
for which HTTP compression may be used.
5) *maxHttpHeaderSize:* The maximum size of the request and response HTTP
header, specified in bytes. If not specified, this attribute is set to 4096
(4 KB).
6) *maxKeepAliveRequests:* The maximum number of HTTP requests which can be
pipelined until the connection is closed by the server.


Thanks