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