当前位置:编程学习 > C#/ASP.NET >>

我使用c#当网页,如何在URL中加入用户和密码信息

Uri uriAddress = new Uri ("http://user1_name:password@www.contoso.com/index.htm ");
Console.WriteLine(uriAddress.UserInfo);
Console.WriteLine("Fully Escaped {0}", uriAddress.UserEscaped ? "yes" : "no");
如果用户名换成 user1@name,就不能正常运行了。
该怎么传? --------------------编程问答-------------------- 你是要get方式呢,还是post方式? --------------------编程问答-------------------- 关注中
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,