日期:2014-05-19  浏览次数:20517 次

知道登录接口怎么写的进来帮帮我
帮别的公司做的网站的一个模块
登录,注册他们有自己的通行证,给我一个地址,
http://test:8080/passport/selfservice/outLogin.jsp?userLoginName= "   +   UserName(自己的数据)   +   "&password= "   +   Password(自己的数据);
用来判断用户名密码是否正确,我用的如上的方法,他说如果正确这个地址会返回1,不正确返回0,我怎么接收这个返回值,还有我用如上方法对不对呢???

------解决方案--------------------
页面上只有1个返回值
我想可能是这样的吧
System.String url = "http://test:8080/passport/selfservice/outLogin.jsp?userLoginName= " + UserName(自己的数据) + "&password= " + Password(自己的数据);

System.Net.WebClient c = new System.Net.WebClient();
System.String result = c.DownloadString(url);
最后判断这个result