Hello I'm new at programing so my question might be a little bit odd. My boss ask me to create a HTTP post request using a key and a message to access our client.
I already seen the article Handle HTTP request in C# Console application but it doesn't include where I put the key and message so the client API knows its me. Appreciate the help in advance.
I believe you wanted this:
You could use a
WebClient
:Of course depending on how the API expects the data to be sent and which headers it requires you will have to adapt this code to match the requirements.