jgritman/httpbuilder

client.ignoreSSLissues doesnt work

hsarmah09 opened this issue · 6 comments

I have been trying to use a gradle plugin to make some REST calls which uses httpbuilder in backend, and i need to ignore all the SSL issues, but this doesnt seem to work.

which version are you using?

Same issue

org.codehaus.groovy.modules.http-builder:http-builder:0.7.1
oauth.signpost:signpost-core:1.2.1.2
oauth.signpost:signpost-commonshttp4:1.2.1.2

client.ignoreSSLIssues() throws

Caught: java.lang.NoSuchMethodError: org.apache.http.conn.ssl.SSLSocketFactory.<init>(Lorg/apache/http/conn/ssl/TrustStrategy;Lorg/apache/http/conn/ssl/X509HostnameVerifier;)V
java.lang.NoSuchMethodError: org.apache.http.conn.ssl.SSLSocketFactory.<init>(Lorg/apache/http/conn/ssl/TrustStrategy;Lorg/apache/http/conn/ssl/X509HostnameVerifier;)V
    at groovyx.net.http.HTTPBuilder.ignoreSSLIssues(HTTPBuilder.java:938)

Try using 0.7.2...

There is no 0.7.2. in central at the moment.

I have another error with 0.7.1 - host is null somethere is apache http. Will try 0.7.2 also.

Checked. I have no problems with 0.7.2 (just deploy it to central please).