我遇到CURL问题,当我尝试访问Internet站点时,我们已经通过HTTP代理从数据中心为其打开了防火墙。 在curl verbose模式下,以下问题如下所示(出于安全考虑,我已更改了实际的IP和站点信息):-
curl -v -x http://10.X.X.X:8080 https://jfm.XXXX.de/rest/api/2/issue/ABCD-100
* About to connect() to proxy 10.X.X.X port 8080
* Trying 10.X.X.X... connected
* Connected to 10.X.X.X (10.X.X.X) port 8080
* Establish HTTP proxy tunnel to jfm.XXXX.de:443
> CONNECT jfm.XXXX.de:443 HTTP/1.0
> Host: jfm.XXXX.de:443
> User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 Connection established
<
* Proxy replied OK to CONNECT request
* successfully set certificate verify locations:
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSLv2, Client hello (1):
Unknown SSL protocol error in connection to jfm.XXXX.de:8080
* Closing connection #0
curl: (35) Unknown SSL protocol error in connection to jfm.XXXX.de:8080
问题是Internet站点的端口是443,但在上面您可以看到它正在转换为8080,因此请帮助我解决连接问题。