Behold the code:
using (var client = new WebClient()) { using (var stream = client.OpenWrite(\"http://localhost/\", \"POST\")) { stream.Write(pos
It looks like you have a byte[] of data to post; in which case I expect you'll find it easier to use:
byte[]
byte[] response = client.UploadData(address, post);
And if the response is text, something like:
string s = client.Encoding.GetString(response);
(or your choice of Encoding - perhaps Encoding.UTF8)
Encoding
Encoding.UTF8