1、当参数的数据较大时。WebClient同步。
![复制代码](https://i-blog.csdnimg.cn/blog_migrate/5025011f7ceda6e0b21a54e04a6b70ce.png)
//实例化
WebClient client = new WebClient();
//地址
string path = "http://127.0.0.1/a/b";
//数据较大的参数
string datastr = "id=" + System.Web.HttpUtility.UrlEncode(ids);
//参数转流
byte[] bytearray = Encoding.UTF8.GetBytes(datastr);
//采取POST方式必须加的header,如果改为GET方式的话就去掉这句话即可
client.Headers.Add("Content-Type", "application/x-www-form-urlencoded");//长度
clie