hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15534] - Inadequate HTTP proxy server support in HttpClient.
Date Sun, 16 May 2004 10:29:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=15534>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=15534

Inadequate HTTP proxy server support in HttpClient.





------- Additional Comments From olegk@apache.org  2004-05-16 10:29 -------
In HttpClient 2.0 API HttpMethod interface represents both request and response,
which effectively implies one to one relationship between a request and a
response. Unfortunately this is not always true. For instance, HTTP proxy
tunneling requires a CONNECT method to be executed against the server before the
original HTTP method can be executed against the target server. Should the
CONNECT method fail (due to authorization error, for instance), its response
should be returned as if it was a response to the original HTTP method. This is
currently not possible due to the monolithic design of HttpMethod interface. The
problem has been worked around by providing a method to copy the response
content (status line, response headers and response body) from one method onto
another. A better, more elegant solution requires HttpMethod interface be split
into HttpREquest / HttpResponse pair of interfaces

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


Mime
View raw message