This class represents a collection of HTTP protocol parameters applicable to
HTTP methods. Protocol
parameters may be linked together to form a hierarchy. If a particular
parameter value has not been explicitly defined in the collection itself,
its value will be drawn from the parent collection of parameters.

makeLenient()
Makes the HTTP methods
attempt to mimic the exact behaviour of commonly used HTTP agents,
which many HTTP servers expect, even though such behaviour may violate
the HTTP protocol specification (RFC 2616 and other relevant RFCs).

HEAD_BODY_CHECK_TIMEOUT

Sets period of time in milliseconds to wait for a content body sent in response to
HEAD method from a
non-compliant server. If the parameter is not set or set to -1 non-compliant
response body check is disabled.

USE_EXPECT_CONTINUE

Activates 'Expect: 100-Continue' handshake for the
entity enclosing methods. The purpose of the 'Expect: 100-Continue'
handshake to allow a client that is sending a request message with
a request body to determine if the origin server is willing to
accept the request (based on the request headers) before the client
sends the request body.

The use of the 'Expect: 100-continue' handshake can result in
noticable peformance improvement for entity enclosing requests
(such as POST and PUT) that require the target server's
authentication.

'Expect: 100-continue' handshake should be used with
caution, as it may cause problems with HTTP servers and
proxies that do not support HTTP/1.1 protocol.

STATUS_LINE_GARBAGE_LIMIT

Defines the maximum number of ignorable lines before we expect
a HTTP response's status code.

With HTTP/1.1 persistent connections, the problem arises that
broken scripts could return a wrong Content-Length
(there are more bytes sent than specified).
Unfortunately, in some cases, this is not possible after the bad response,
but only before the next one.
So, HttpClient must be able to skip those surplus lines this way.

Set this to 0 to disallow any garbage/empty lines before the status line.
To specify no limit, use Integer.MAX_VALUE (default in lenient mode).

HttpMethodParams

public HttpMethodParams()

Creates a new collection of parameters with the collection returned
by DefaultHttpParams.getDefaultParams() as a parent. The collection will defer
to its parent for a default value if a particular parameter is not
explicitly set in the collection itself.

getVirtualHost

makeStrict

public void makeStrict()

Makes the HTTP methods
strictly follow the HTTP protocol specification (RFC 2616 and other relevant RFCs).
It must be noted that popular HTTP agents have different degree of HTTP protocol
compliance and some HTTP serves are programmed to expect the behaviour that does not
strictly adhere to the HTTP specification.

makeLenient

public void makeLenient()

Makes the HTTP methods
attempt to mimic the exact behaviour of commonly used HTTP agents,
which many HTTP servers expect, even though such behaviour may violate
the HTTP protocol specification (RFC 2616 and other relevant RFCs).