commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ortwin Gl├╝ck" <ortwin.glu...@nose.ch>
Subject Re: [HttpClient] [Patch] Proxies
Date Tue, 09 Jul 2002 08:29:31 GMT
IMHO the if statement should check for GetMethod || HeadMethod - (not 
PostMethod).

Evert Hoff wrote:
> Index: java/org/apache/commons/httpclient/HttpMultiClient.java

> +        // Excluding post methods from redirects. Paragraph 10.3 
> 
> +        // of HTTP/1.1 RFC2616 says that any method other than GET or HEAD
> 
> +        // requires user intervention before redirecting. --Evert
> 
> +        if (method.getFollowRedirects() &&
> 
> +            (method instanceof GetMethod || method instanceof PostMethod) &&
> 
> +            (status == 301 || status == 302 || 
> 
> +            status == 303 || status == 307))
> 


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


Mime
View raw message