Is that possible to send HttpWebRequest using TLS1.2 on .NET 4.0 framework

后端 未结 6 1868
长发绾君心
长发绾君心 2020-11-30 06:27

My application connects to Experian server and Experian will soon stop supporting TLS 1.0 and TLS 1.1. All connectivity using HTTPS must use TLS Version 1.2.

I want

6条回答
  •  野性不改
    2020-11-30 07:11

    The VB.NET Translation of iignatov's answer:

    ServicePointManager.Expect100Continue = True
    ServicePointManager.SecurityProtocol = CType(3072, SecurityProtocolType)
    ServicePointManager.DefaultConnectionLimit = 9999
    

提交回复
热议问题