hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: HTTP Version
Date Thu, 21 Dec 2006 12:25:44 GMT
Hello Lalit,

the effective version is updated when the response is received.
So even if you are sending with HTTP/1.0, if the server responds
with HTTP/1.1, method.getEffectiveVersion() returns 1.1. You
should enable the wire log for the header and look at the
status lines ("GET /some/path HTTP/1.?") and response lines
("HTTP/1.? 200 OK") to see which versions are actually used
by HttpClient and the server, respectively.
http://jakarta.apache.org/commons/httpclient/logging.html

On a side note: don't create a new HttpVersion object.
Just use the constant HttpVersion.HTTP_1.0.

cheers,
  Roland



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


Mime
View raw message