var client = new WebClient();
//client.Headers.Add(HttpRequestHeader.Authorization, Environment.UserName);
WebProxy proxyObject = new WebProxy("http://xxx.xxx.xxx.xxx:8080/", true);
NetworkCredential credential = new NetworkCredential("xxxx", "nnnn");
proxyObject.Credentials = credential;
client.Proxy = proxyObject;
//client.DownloadFile(textBox1.Text, "weiboimage.jpg");
byte[] data = client.DownloadData(textBox1.Text);