I think I'm a little crazy when I test this on my local web server, it works fine when I go to the website, it returns an empty string instead of the data I expect
I am not familiar with C #, so I just wanted to check that I was doing everything right. data is just ascii text
wc = new WebClient(); wc.Headers.Add("Content-Type", "application/x-www-form-urlencoded"); response = wc.UploadData(this.urlUpdate, Encoding.ASCII.GetBytes("data=" + HttpUtility.UrlEncode(buf.ToString()))); s = Encoding.ASCII.GetString(response);
c # webclient
bumperbox
source share