hi,
i downloaded the latest release (not alpha, but the release from january
03).
everything works fine except in case where the URL i am accessing wants to
redirect to another location.
In the logfile i see a warning like
WARN httpclient.HttpMethod - Redirect from host www.foobar.ch to
www.foobar2.ch is not supported
Is there a way to catch this redirect?
Excerpt of my code:
The following classes are used:
import org.apache.commons.httpclient.HttpConnection;
import org.apache.commons.httpclient.HttpState;
import org.apache.commons.httpclient.methods.GetMethod;
In the code, the calling lines are:
HttpConnection httpC = new HttpConnection(url.getHost(), port);
httpC.setSoTimeout(getHttpTimeout());
httpC.open();
HttpState state = new HttpState();
GetMethod method = new GetMethod(url.toString());
method.execute(state, httpC);
InputStream in = httpC.getResponseInputStream(method);
THANKS!!!!!!!!!!!!!!!
Balz Schreier