Getting ssl.SSLHandshakeException when using REST client with header but works fine with PostMan
问题 I have an external REST resource with below details: The URL: abc.com/orders (the domain is with https ) I need to pass UserID as an HTTP header with key "user" value is "abcd" This would return an JSON response I am using below Java code for this: try { Client client = Client.create(); WebResource webResource = client.resource("abc.com/orders"); ClientResponse response = webResource.header("user", "abcd").accept("application/json") .get(ClientResponse.class); if (response.getStatus() != 200)