ASP.NET 表单身份验证 IIS 日志文件显示 POST 请求的 POST 和 GETx2
如果从我的 ASP.NET Web 应用程序客户端执行登录表单 POST 请求(带有重定向 URL),然后查看 IIS 日志,那么我会看到 POST 请求,但我还会看到一些与重定向相关的 GETS。任何人都可以解释下面显示的 POST-GET-GET 序列 - 为什么第二个 GET (带有 ReturnUrl)存在 - 这看起来正确吗?前两个之后的所有 GETS 对我来说都有意义,但为什么 /Admin 被请求两次,如图所示?
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 POST /Account/LogOn ReturnUrl=%2fAdmin%2f 80
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 GET /Admin/ - 80
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 GET /Account/LogOn ReturnUrl=%2fAdmin%2f 80
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 GET /Scripts/jquery.form.js - 80
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 GET /Content/maintheme.css - 80
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 GET /Scripts/jquery-1.6.1.min.js - 80
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 GET /Scripts/jquery-ui-1.8.7.min.js - 80
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 GET /Scripts/jquery.validate.min.js - 80
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 GET /Scripts/json2.js - 80
If a do a login form POST request (with a redirect URL) from my ASP.NET web app client and then look at the IIS logs then I see the POST request but I also see a couple of GETS relating to the redirect. Can anyone explain the sequence of POST-GET-GET shown below - why does the second GET (with the ReturnUrl) exist - does this look correct? All the GETS after the first two make sense to me, but why is /Admin requested twice as shown?
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 POST /Account/LogOn ReturnUrl=%2fAdmin%2f 80
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 GET /Admin/ - 80
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 GET /Account/LogOn ReturnUrl=%2fAdmin%2f 80
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 GET /Scripts/jquery.form.js - 80
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 GET /Content/maintheme.css - 80
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 GET /Scripts/jquery-1.6.1.min.js - 80
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 GET /Scripts/jquery-ui-1.8.7.min.js - 80
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 GET /Scripts/jquery.validate.min.js - 80
2011-06-06 13:19:20 W3SVC97442007 192.168.1.4 GET /Scripts/json2.js - 80
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论