I use GetStringAsync method of class HttpClient to get JSON and it works excellent. But I don't understand how to use PostAsync or PostAsJsonAsync methods to send post requests. For example, I need to send a post request to "http://some.url" with key "somekey" and value "1". How can I do this?
↧