I\'m connecting to a remote server with apache http client. the remote server sends a redirect, and i want to achieve that my client isn\'t following the redirect automatica
Using HttpClient 4.3 and Fluent:
final String url = "http://..."; final HttpClient client = HttpClientBuilder.create() .disableRedirectHandling() .build(); final Executor executor = Executor.newInstance(client); final HttpResponse response = executor.execute(Request.Get(url)) .returnResponse();