VB.NET Winsock HTTPS Post And Get Request

604 Views Asked by At

I know Winsock Control system well enough. As i know HTTPS protocol is 8080 and all the data sent or received is encrypted with its key.

I need to know how i can encrypt the data as the format of HTTPS.

I would be very thankful if anyone knows and helps me with this problem.

1

There are 1 best solutions below

1
On

The correct way to handle this is to not use the WinSock control directly at all. .NET has System.Net.Http.HttpClient and Windows.Web.Http.HttpClient classes, both of which support HTTP and HTTPS requests. Use them instead of the WinSock control.