Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对方为PHP服务器导致请求体空 #46

Open
chuIllusions opened this issue Oct 24, 2019 · 2 comments
Open

对方为PHP服务器导致请求体空 #46

chuIllusions opened this issue Oct 24, 2019 · 2 comments

Comments

@chuIllusions
Copy link

问题描述:
使用这个请求框架很方便构造,但是遇到了以下的问题(对方服务器后台语言采用PHP):
1.本地windows、本地mac都能请求通并且对方服务器能够正常返回。
2.但是扔到阿里云服务器,对方接收到的请求体就为空,试过对接过很多甲方都是这样。但是甲方使用java语言就能正常使用。

请问这是啥问题。

@DominicElvira
Copy link

我也遇到了相同的问题,对方是用的PHP,我方使用httpclientUtil进行调用时,返回connect reset

@DominicElvira
Copy link

DominicElvira commented Dec 25, 2020

上面的问题解决了,问题原因:使用协议错误导致的。
修改前:

image

修改后:
image

建议:默认ssl版本号可以为TLSv1.2。
因为:SSLv3 仅支持TLSv1 ; TLSv1.2 支持TLSv1,TLSv1.1,TLSv1.2;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants