hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey Dever <jsde...@sympatico.ca>
Subject Re: bug report for 302 redirect code
Date Sun, 19 Jan 2003 17:40:43 GMT
Is this still an issue?

-jsd

Andrew Arrow wrote:

>Hello,
>
>I think I found a small bug with the setFollowRedirects(true):
>
>HttpClient c = new HttpClient();
>c.startSession("www.backstage.com", 80);
>
>GetMethod g = new GetMethod("/backstage/members/index.jsp");
>g.setFollowRedirects(true);
>int code = c.executeMethod(g);
>
>System.out.println(code);
>
>/backstage/members/index.jsp redirects to another page which in turn
>redirects to another page.  It seems my code above only goes to the 1st
>redirect and doesn't follow all the 302's all the way to a 200 code.  Am I
>doing something wrong?
>
>-Andrew
>
>
>--
>To unsubscribe, e-mail:   <mailto:commons-httpclient-dev-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:commons-httpclient-dev-help@jakarta.apache.org>
>
>
>  
>


Mime
View raw message