服务端代码与接口页面post交互

webclient对象实现web

WebClient wb = new WebClient();                        对象

System.Collections.Specialized.NameValueCollection varPost = new System.Collections.Specialized.NameValueCollection();  ci

参数对象,对方页面接收                                 string

varPost.Add("a", a);                        io

varPost.Add("b", b);cli

varPost.Add("c", c);coding

byte[] RemoteInfo = wb.UploadValues(requestUrl, "POST", varPost);          request

页面应答返回              di

string sRemoteValue = System.Text.Encoding.UTF8.GetString(RemoteInfo);co

相关文章
相关标签/搜索