ofecrpnr
ofecrpnr

Reputation: 119

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). I can successfully request to web server using HTTP protocol. But there some webs only accept HTTP SSL request, 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

Upvotes: 3

Views: 2459

Answers (2)

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

Upvotes: 2

Adeel
Adeel

Reputation: 19228

Check this Secure Socket Library and this class

Upvotes: 2

Related Questions