.NET 4.5 HttpClient PUT or POST over SSL always fails

后端 未结 2 857
暗喜
暗喜 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:42

    I had the same problem and I resolved it installing the last updated of the .NET framework (4.5).

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题