直接写成啦一个MyNet.cs类方便使用get/post方法请求//get请求MyNet.SendRequest("http://www.baidu.com");//post请求varparam=newDictionary{{"a","thisisaparam"},{"b","thissecondparam"}};MyNet.SendRequest("http://www.baidu.com",param);//后面有参数自动转为post,没有参数默认为get设置请求头varheaders=newDictionary(){{"UserAgent","Mozilla/5.0(WindowsNT6