'Disable hostname verification on org.jboss.resteasy.client.ClientRequest;

I am trying to invoke a rest service by using the abovementioned client. How can i disable hostname verification ?



Solution 1:[1]

After some research it seems that the only way to disable hostname verification with RestEasy is to use org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder and setResteasyClientBuilder.HostnameVerificationPolicy.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Skouprinio