如何让 Web 浏览器将所有活动(包括请求、响应、Cookie 活动)记录到我可以检查的日志文件中?

发布于 2024-07-17 04:33:42 字数 385 浏览 4 评论 0原文

我正在调试 Web 应用程序中的会话不匹配问题。 涉及多个服务器,用户在持有会话令牌和 cookie 的同时在它们之间传递。

协调点是浏览器。 我想详细了解浏览器正在执行哪些操作,基本上相当于服务器日志的客户端。 了解 HTTP 请求的详细信息(包括发送的标头、响应的详细信息以及浏览器为影响请求或作为响应结果而采取的任何操作(例如,执行重定向))将很有用。 。

我无法获得各种服务器组件的所有源代码,因此我无法检查源代码以获取有关如何处理会话令牌的线索。 证据就在布丁中:观察到的浏览器行为将是毫无疑问的答案。

因为涉及的服务器都使用 SSL 连接,所以恐怕我无法在数据包转储级别跟踪这一点。

如何检测浏览器(最好是 IE)来记录此级别的请求和响应详细信息?

I am debugging a session mismatch problem in a web application. There are several servers involved, and the user is passed between them while holding session tokens and cookies.

The coordinating point is the browser. I want to know in detail what actions the browser is taking, basically a client equivalent to the server log. It would be useful to know the details of the HTTP request including what headers were sent, the details of the response, and any actions the browser takes to affect the request or as a result of the response (for example, acting on a redirect).

All of the source code for the various server components is not available to me, so I cannot examine the source for clues to how the session tokens are handled. The proof is in the pudding: the browser's observed behavior would be unquestionable answer.

Because the servers involved all use SSL connections, I am afraid I cannot trace this at a packet dump level.

How can I instrument the browser (preferably IE) to log this level of request and response detail?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

魂归处 2024-07-24 04:33:42

Fiddler 是另一种选择

Fiddler is another option

ㄖ落Θ余辉 2024-07-24 04:33:42
  • 使用HttpWatch Pro工具。 它可以将日志保存到文件中。 例如,稍后用户可以将此日志文件发送给管理员进行分析。 它还可以比较这些日志 - 您可以将一个用户的日志与另一个用户的日志进行比较并轻松发现问题。 (顺便说一句,基础版免费,专业版功能齐全,有效期为 30 天)

  • Fiddler< /a> 是一个免费的替代方案。

  • Use HttpWatch Pro tool. It can save logs into file. And later on a user can send this log file to admin for analysis for example. It also can compare these logs - you can compare one user's log with another and easily spot the problem. (BTW, Basic Edition is free and Pro edition is fully functional for 30 days)

  • Fiddler is a free alternative.

寂寞陪衬 2024-07-24 04:33:42

Http Watch 的基本版本非常有限,在大多数情况下它不显示标头,所以用处不大。

Fiddler 是一个更好的选择。

IEWatch 是此类别中的另一个工具,但它不是免费软件

The Basic edition Of Http Watch is very limited, it does not display headers for most purposes it is not that useful.


Fiddler is a much better option.


IEWatch is another tool in this category, but it is not freeware

全部不再 2024-07-24 04:33:42

我已经使用 Charles 一段时间了...

http://www.charlesproxy.com/

“Charles 是一个HTTP 代理/HTTP 监视器/反向代理,使开发人员能够查看其计算机与 Internet 之间的所有 HTTP 和 SSL/HTTPS 流量,其中包括请求、响应和 HTTP 标头(其中包含 cookie 和缓存信息)。

它适用于 FF、CHROME 和 IE、Mac、Linux 和 Windows,如果您设置了证书,甚至可以将 SSL 代理作为中间人 HTTPS 服务...

http://www.charlesproxy.com/documentation/proxying/ssl-proxying/

试用期为 30 天,只要你准备好时不时地等待 5 秒;-)

I have used Charles for a while...

http://www.charlesproxy.com/

"Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a developer to view all of the HTTP and SSL / HTTPS traffic between their machine and the Internet. This includes requests, responses and the HTTP headers (which contain the cookies and caching information)."

It works with FF, CHROME and IE and Mac, Linux and Windows,and even has SSL proxying as a man-in-the-middle HTTPS service if you set up your certs...

http://www.charlesproxy.com/documentation/proxying/ssl-proxying/

Its a 30 day trial as long as youre prepared to wait for 5 secs every-now-and-then ;-)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文