我使用curl命令将文件上传到外部api,
curl -iv --cacert xxx.pem -u xx:xx -F "dataF=@/xx.csv" -F "confId=test" -x "http://xx.xx.xx.xxx:443" "https://xxxxx.com/testupload/"
在卷曲中获取跟随错误
* Trying xx.xxx.x.xx...
buffer!
将HTTP隧道连接到test.com:443
连接test.com:443 HTTP/1.1主机: test.com:443用户-代理: curl/7.61.1代理连接:保持-活动
< HTTP/1.1 200连接建立HTTP/1.1 200连接<代理代理: Zscaler/6.1代理代理: Zscaler/6.1 <
request
在RHEL 8升级之前也在工作,
此外,我还试图使用java httpclient进行连接,但最后还是遇到了同样的问题。
javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
at sun.security.ssl.SSLSocketImpl.handleEOF(SSLSocketImpl.java:1570)
at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1400)
at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1300 ...
Caused by: java.io.EOFException: SSL peer shut down incorrectly
at sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:167)
at sun.security.ssl.SSLTransport.decode(SSLTransport.java:109)
at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1392)
找不到根本原因,任何指针都会很有帮助。
提前感谢
发布于 2022-11-02 03:45:17
问题是防火墙,基本上是防火墙阻塞了传出的连接。
后白名单的ip,问题得到解决,我们能够连接到服务器。
https://stackoverflow.com/questions/69293519
复制相似问题