hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arul Dhesiaseelan <ar...@acm.org>
Subject Request Redirect in 4.3.x
Date Sun, 10 Nov 2013 02:58:22 GMT
Hi,

I have this code using 4.2.x APIs for controlling redirect at the request.


request.getParams().setBooleanParameter(ClientPNames.HANDLE_REDIRECTS,
false);

This allows me to configure redirect per-request, instead of the global
redirect client config.

How do I implement this in 4.3.x as getParams() is deprecated?

I have this code for the client:

        requestConfigBuilder.setRedirectsEnabled(true);
        RequestConfig requestConfig = requestConfigBuilder.build();
        clientBuilder.setDefaultRequestConfig(requestConfig);
        clientBuilder.build();

I would like to override redirects at the request. Is this possible with
the new APIs?

Thanks,
Arul

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message