Garbled httpWebResponse string when posting data to web form programmatically
问题 I tried to search previous discussion about this issue but I didn't find one, maybe it's because I didn't use right keywords. I am writing a small program which posts data to a webpage and gets the response. The site I'm posting data to does not provide an API. After some Googling I came up to the use of HttpWebRequest and HttpWebResponse. The code looks like this: HttpWebRequest httpRequest = (HttpWebRequest)WebRequest.Create("https://www.site.com/index.aspx"); CookieContainer cookie = new