I am using Jersey 2.4.1 for rest and want to make a GET or Post call via HTTP and HTTPS proxy. I am unable to do it. I have searched on internet and found many links but most of it are obsolete now. Some help will be really helpful as there are lot of changes from Jersey 1.X to 2.X
This is my code to make GET call(which is working fine). I want to modify it to make this call via HTTP and HTTPS proxy. Any pointers will be helpful.
javax.ws.rs.core.Response response = null;
Client client = ClientBuilder.newClient();
WebTarget target = client.target(url); //url is string
response = target.request().header("Authorization", header).accept(javax.ws.rs.core.MediaType.APPLICATION_JSON).get();