I'm using the PostAsync method of HTTPClient class. The url has changed and now it no longer works. I'm told that the request never gets through to the server and that I need to set the proxy settings. I can't find any proxy method on the HttpClient class, so what do I need to do?
HttpClient client = new HttpClient();
StringContent stringContent = new StringContent(msg, Encoding.UTF8, "application/json");
HttpResponseMessage resp = await client.PostAsync(url, stringContent);
The returned "resp" comes back with a 200 status and no error messages, but nothing is getting through. Any ideas?
I'm only a C# dabbler, so don't baffle me with too much C# tech talk, please.
Oh, and if it is of consequence, the new url is on AWS.
Note, this is code that used to work on the previous url. The only thing that has changed is the url and the proxy it is behind.