jeudi 26 mars 2020

how can i do https request with c++ with winsock2

i want make https requests instead of http, from client to server with POST method. These are the steps i follow to make simple http requests:

  1. open a socket.
  2. conect to server by its domain name.
  3. prepare the data for request.
  4. send request and get server response.

however i can't find anything about how i can do https requests with winsock in c++. i tried to change the http header from HTTP/1.1 to HTTS/1.1 but doesn't working. Can someone help?




Aucun commentaire:

Enregistrer un commentaire