hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Arrow" <andrewar...@yahoo.com>
Subject bug report for 302 redirect code
Date Sat, 04 Jan 2003 21:35:16 GMT

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");
int code = c.executeMethod(g);


/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?


View raw message