|
From: Gabriella T. <Gab...@ni...> - 2013-11-27 02:38:12
|
So I've managed to expend my client code to support proxy and SSL.
Now I need to make them work with a redirect.
My queries are all failing with a status 301 (both POST and GET)
What do I need to do to make sure the redirect is followed?
Here's an example of my call
ResteasyClientBuilder rsb = new ResteasyClientBuilder();
rsb.defaultProxy("myproxy",80,"http");
SSLContext ctx = getSSLContext();
rsb.sslContext(ctx);
ResteasyClient rsc = rsb.build();
ResteasyWebTarget target = rsc.target(BASEURL);
RiskScapeLicenseService client = target.proxy(RiskScapeLicenseService.class);
Response response = client.licenseRequest(……);
Thanx
Gaby
--
Please consider the environment before printing this email.
NIWA is the trading name of the National Institute of Water & Atmospheric Research Ltd.
|