[英]Sending SSL HTTP request via TcpClient socket in C#
I am facing a problem that I must retrieve a website content via a TcpClient socket (I cannot use HttpWebRequest as well as HttpWebResponse because some other issues). 我遇到一个问题,我必须通过TcpClient套接字检索网站内容(由于其他一些问题,我不能同时使用HttpWebRequest和HttpWebResponse)。 I can successfully request to web server using HTTP protocol. 我可以使用HTTP协议成功请求Web服务器。 But there some webs only accept HTTP SSL request, not the HTTP. 但是有些网站只接受HTTP SSL请求,而不接受HTTP。 My question is: How can I send HTTP SSL request to the host server and retrieve back the content? 我的问题是:如何将HTTP SSL请求发送到主机服务器并取回内容?
Any advices are really appreciated. 任何建议都非常感谢。
Thanks and best regards 谢谢和最好的问候
.NET框架中的SslStream类,或者由我公司维护的SecureBlackbox的SSL / TLS组件(如果需要高级功能和完整控制)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.