62,263
社区成员
发帖
与我相关
我的任务
分享string url = @"https://webshipping2.dhl.com/wsi/SessionManagementServlet?moduleKey=Login&ActionIdKey=2&usersCurrentDate=2013-7-17&rememberMyLanguageFlag=N&rememberMyLoginFlag=N";
System.Net.WebClient WebClientObj = new System.Net.WebClient();
System.Collections.Specialized.NameValueCollection PostVars = new System.Collections.Specialized.NameValueCollection();
string sRemoteInfo = "";
try
{
byte[] byRemoteInfo = WebClientObj.UploadValues(url, "POST", PostVars);
sRemoteInfo = System.Text.Encoding.Default.GetString(byRemoteInfo);
}
catch (Exception)
{
//throw e;
}