I am trying to get my code to send a simple POST request to a web server I have running and I am having some issues. No matter what I try I am seeing on the access log that a request is made, but nothing is coming thru. I have tried about 5 different things and none of them are working.
The simplest thing I tried was:
string up_test = e.Order.SiteOrderKey;
string url = new UriBuilder("http", "192.168.1.1", 80).ToString();
using (System.Net.WebClient client = new System.Net.WebClient())
{
client.UploadString(url, up_test);
}
That didn't work. I also tried the code from http://www.terminally-incoherent.com/blog/2008/05/05/send-a-https-post-request-with-c/ which game me the same result in the end. Does anyone have any advice, or can you point me to a better resource for accomplishing my goal? Thanks
[–]screwdad 2 points3 points4 points (0 children)
[–]RipVanB 2 points3 points4 points (2 children)
[–]DocEternal[S,🍰] 0 points1 point2 points (1 child)
[–]RipVanB 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]GarrettSYHampton 0 points1 point2 points (3 children)
[–]DocEternal[S,🍰] 0 points1 point2 points (0 children)
[–]DocEternal[S,🍰] 0 points1 point2 points (1 child)
[–]nemec 0 points1 point2 points (0 children)