【问题标题】:HOw to get url contents of weblink如何获取网页链接的url内容
【发布时间】:2012-09-06 02:27:00
【问题描述】:

假设我有一个需要通过 userID 的 web 应用程序

上一页的网址是

http://app1.faceicicle.com/admin/entryAction.do?action=first&locale=&sessionID=5q2m04k9c5362p50b17b63p53679jx25&login=8121support&prjLinkURL=&moduelType=&reminderLink=&toModule=&toProject=

如何获取用户 ID、会话 ID 或密码的值?

【问题讨论】:

  • 仅仅基于上一页的那个url?

标签: c# asp.net security web-applications


【解决方案1】:

您可以通过访问响应对象的查询字符串属性来访问此类参数

Request.QueryString;

例如,查看the docs

但是,从安全角度来看,您可能希望通过表单而不是 url 参数传递用户 ID 和密码

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-11-16
    • 2010-11-06
    • 1970-01-01
    • 2016-09-28
    • 2021-02-06
    • 2016-12-07
    • 2011-06-24
    • 2011-07-15
    相关资源
    最近更新 更多