服務端代碼與接口頁面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

相關文章
相關標籤/搜索