java - conflict in httpclient4.1.jar and httpclient4.2.3.jar -


in line 2 below:

when use httpclient4.1.jar in libs setredirectstrategy error removed , laxredirect error occured (and laxredirect import take error)-error(1) below,

when use httpclient4.2.3, laxredirect error removed , setredirectstrategy error occured- error(2) below .

what do? (use 4.1 or 4.2.3, , chages must 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- method setredirectstrategy(laxredirectstrategy) undefined type defaulthttpclient  2- laxredirectstrategy cannot resolved type 

the redirectstrategy introduced 4.1 , deprecated.so when included 4.1 jar setredirectstrategy worked 4.2.3 didn't.

in case can't override system (android's) implementation.so here suggest refer questions no. 1,no. 2 , no. 3.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -