在Safari 7中的请求标头中显示cookie [英] Display cookies in request headers in Safari 7
问题描述
在使用默认控制台在Chrome或Opera中检查请求标头时,我可以在请求标头中看到哪些cookie已发送到服务器,并且如果服务器尝试设置Cookie,我还可以看到Set-Cookie标头。
When examining request headers in Chrome or Opera using their default console, I can see in the request headers what cookies have been sent to the server and if server is trying to set a cookie, I can also see Set-Cookie header.
但是,在Safari 7.1.2中,我没有看到这些信息,但是看到了其他信息,例如Accept,User-Agent,Referer等。
However, in Safari 7.1.2 I don't see these information, but I see other information such as Accept,, User-Agent, Referer etc.
我是否需要启用某些功能才能在Safari的控制台中查看cookie?如何查看与请求一起发送的Cookie?
Do I need to enable something to see the cookies in the Safari's console? How can I view cookies that are being sent together with the request?
谢谢
P.S。我知道我可以在资源中看到cookie,但是我需要特别知道存在cookie的请求。
P.S. I know that I can see cookies in the resources, but I need to know specifically in which requests the cookies are present.
推荐答案
据我所知,现代版本的Safari将在响应和请求中分别省略 Set-Cookie和 Cookie标头。我想原因是哦,您可以在资源/ Cookie选项卡中看到设置了哪些cookie。但是,当您尝试确定是否发送任何Cookie标头时,这种情况的可怜性很差。
As far as I know, modern versions of Safari will omit the "Set-Cookie" and "Cookie" headers in the responses, and requests, respectively. I guess the reason is "oh, you can see what cookies are set in the "Resources / Cookies" tab. However, that's of poor consolation when you're trying to determine if any Cookie headers are being sent, which is my situation.
这篇关于在Safari 7中的请求标头中显示cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!