Im trying make a POST request to a server using TLSv1.2.
The problems i have here are:
How to make a connection with TLSv1.2 secure socket layer ?
How to HPACK the headers ?
How to send the body(DATA) to same stream i think that is via the Stream identifier flag but i don't know how to do it programatically.
On the next picture you have an example about what im trying to reproduce in c++:
I think this WSAConnect function can work with TLSv1.2 connection but i'm not sure at all.
I try too HPACK encoder/decoder header but when i import the header on Visual Studio 2017 gives me some errors in 4 or 5 lines.
And finally send DATA to the same stream, i think the data via TLSv1.2 need by encrypted but no compressed like the HEADERS.
My question is how can i do it programatically in c++ ?
With simple example and good explanation is sufficient.
EDIT1:
I find openssl client for c++, looks like work with TLSv1.2