WebClient client = new WebClient(); byte[] responseArray = client.DownloadData("http://对方接口程序?aa=aa&bb=bb"); string result = System.Text.Encoding.Default.GetString(responseArray);//返回值
解决方案 »
- Update 无法找到 TableMapping['test'] 或 DataTable“test”
- 求助按钮点击事件
- OleDbCommand 数据库连接错误
- C# 简单的正则表达式问题
- 求援for循环,for循环变量能否用string,for(string i="A" to "D")?
- 帮忙看下C#Winform模拟提交表单这样写有什么错误
- 在数据流中接收到的十六进制数,请问有没有具体方法可以处理十六进制数??
- webservices服务器性能
- (WinFrm)GridView的DataGridViewTextBoxColumn 列的右边中添加一个Button 不是DataGridViewButtonColumn列 大家指点一下
- 为什么我的VS2003在安装的时候不让我选择安转到那个盘?
- ◎◎◎请教各位高手WinForm中关于ListView的SelectedIndexChanged事件的处理◎◎◎
- 常驻服务器的运行程序如何写好!
NameValueCollection form = new NameValueCollection(); form.Add("UserName","aaa");
form.Add("Pass","bbb"); byte[] responseArray = client.UploadValues("http://xxxxxxxxxxxx","POST",Form); string result = System.Text.Encoding.Default.GetString(responseArray);