in line 2 below:
when i use httpclient4.1.jar in my libs setRedirectStrategy error removed and laxRedirect error occured (and laxRedirect import also take error)-error(1) below,
when i use httpclient4.2.3, laxredirect error removed and setRedirectStrategy error occured- error(2) below .
what i do? (use 4.1 or 4.2.3, and what chages must be done?)
DefaultHttpClient httpclient = new DefaultHttpClient();
httpclient.setRedirectStrategy(new LaxRedirectStrategy());
imports are:
import org.apache.http.impl.client.LaxRedirectStrategy;
import org.apache.http.impl.client.DefaultHttpClient;
and errors are:
1- The method setRedirectStrategy(LaxRedirectStrategy) is undefined for the type DefaultHttpClient
2- LaxRedirectStrategy cannot be resolved to a type