Making HTTPS call in C# with the BouncyCastle library
问题 Using C# 4.0, I need to make HTTPS call with the BouncyCastle library (Short story : Windows XP + TLS 1.2). When using the following code, I get a "HTTP Error 400. The request verb is invalid." Here is my code : using (var client = new TcpClient("serverName", 443)) { var sr = new SecureRandom(); var cl = new MyTlsClient(); var protocol = new TlsClientProtocol(client.GetStream(), sr); protocol.Connect(new MyTlsClient()); using (var stream = protocol.Stream) { var hdr = new StringBuilder(); hdr