开发者

Sending SSL HTTP request via TcpClient socket in C#

开发者 https://www.devze.com 2023-02-04 08:53 出处:网络
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). I can successfully request to we

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). I can successfully request to web server using HTTP protocol. But there some webs only accept HTTP SSL requ开发者_如何学JAVAest, not the HTTP. My question is: How can I send HTTP SSL request to the host server and retrieve back the content?

Any advices are really appreciated.

Thanks and best regards


Check this Secure Socket Library and this class


SslStream class in .NET framework, or the SSL/TLS components of SecureBlackbox, which my company maintains, if you need advanced functionality and complete control.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号