积极答复者
如何向一个需要域验证的网站用命令的方式提交用户名和口令?

问题
-
通过ServerXmlHttp向一个需要域验证的网站的验证后跳转向该网站时却还需输入用户名和口令。代码如下:
string Username = tbDomain.Text + "\\" + tbUser.Text;
string pwd = tbPwd.Text;
ServerXMLHTTP30 xmlHttp = new ServerXMLHTTP30();
string vUrl = "http://s.com/default.aspx";
xmlHttp.open("POST", vUrl, false, Username, pwd);
xmlHttp.send();
int s = xmlHttp.status;
string ss = xmlHttp.statusText;
if (s == 200)
{
Response.Redirect(vUrl);
}以上代码中,xmlHttp.open和xmlHttp.send();都是成功的,只是最后转向时无法提交验证时的用户名和口令。大家看看有什么方法解决此问题,谢谢!
答案
-
PRB: "Access Denied" Error Message When Using ServerXMLHTTP to Access an Authenticated Site
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- 已标记为答案 Paul Zhou 2011年4月28日 3:13
全部回复
-
PRB: "Access Denied" Error Message When Using ServerXMLHTTP to Access an Authenticated Site
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- 已标记为答案 Paul Zhou 2011年4月28日 3:13