Friday, October 2, 2015

Automated Application log in having j_security_check challenge using Apache httpclient





I was working on automated login using  the code provided by blog post specially using j_security_check using httpclient (4.5.1)


http://www.elitejavacoder.com/2013/10/http-client-form-based-authentication.html




DefaultHttpClient client = new DefaultHttpClient();

You will get meesage as "DefaultHttpClient is depricated"
To make this code working please use

HttpClient client = HttpClientBuilder.create().build();

No comments: