1中不能使用ignoreSSLIssues

1中不能使用ignoreSSLIssues

本文介绍了在HttpBuilder版本0.7.1中不能使用ignoreSSLIssues的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Java 8 |
Groovy语言|

IDE:IntelliJ IDEA |
Gradle 3



我遇到SSL问题


$ b

代码:

  import groovyx.net.http.RESTClient 

def client = new RESTClient()
client.ignoreSSLIssues()
def result = client.get(uri:https://sacvo76l6b.execute-api.ap-northeast-
1.amazonaws.com/)

它抛出异常

尽管我使用的是 ignoreSSLIssues(),但它似乎不适合我。



我也下载了0.7.2版来验证这个问题,但它也是同样的问题



PS1:如果我使用Postman



PS2:HttpURLConnection库也适用于我



您有什么想法吗?非常感谢

Java 8 |Groovy Language |
IDE: IntelliJ IDEA |Gradle 3

I have problem with SSL issue

Code:

import groovyx.net.http.RESTClient

def client = new RESTClient()
client.ignoreSSLIssues()
def result = client.get(uri: "https://sacvo76l6b.execute-api.ap-northeast-
1.amazonaws.com/")

It throws below exception

Although I'm using ignoreSSLIssues(), it seems like not work for me.

I also download version 0.7.2 to verify this problem, but it's also same problem

PS1: Uri works fine for me if i use Postman

PS2: HttpURLConnection library also works for me

Could you have any idea? Thanks a lot

这篇关于在HttpBuilder版本0.7.1中不能使用ignoreSSLIssues的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 06:54