.NET 4.5 HttpClient PUT or POST over SSL always fails

后端 未结 2 856
暗喜
暗喜 2021-02-08 11:13

I am having a terrible time troubleshooting this issue. I\'m also having a terrible time reproducing it consistently from one application to another.

Under certain circ

2条回答
  •  别那么骄傲
    2021-02-08 11:51

    I just got done troubleshooting a similar issue with HttpClient. It turns out I was receiving an SNI warning during the SSL handshake, which caused HttpClient to lock up indefinitely. Try running WireShark/tcpdump and see if you are getting a TLSv1 Unrecognized Name warning, or any other kind of handshake warning. HttpClient does not appear to handle these properly based on my tests.

提交回复
热议问题