简体   繁体   English

http cookies 来自哪里,不是由“Set-Cookie”响应头设置的?

[英]Where do http cookies come from, which are not set by “Set-Cookie” response headers?

I am trying to reconstruct/imitate a browser request from my spring boot backend.我正在尝试从我的 spring 引导后端重建/模仿浏览器请求。 I do a GET request to the server and store all the response headers with 'Set-Cookie', which are three in total.我向服务器发出 GET 请求,并使用“Set-Cookie”存储所有响应标头,总共三个。

When I delete my cookies and re-fire the request in browser though, ten cookies are added to my browser cookies instead of three.当我删除我的 cookies 并在浏览器中重新触发请求时,十个 cookies 被添加到我的浏览器 cookies 而不是三个。 I went through the network traffic recording of Chrome and could not find any responses which set cookies despite the first one with three.我浏览了 Chrome 的网络流量记录,但找不到任何设置 cookies 的响应,尽管第一个是三个。

Where do the other seven cookies come from?另外七颗cookies是哪来的? How can I save those seven missing cookies to my backend in order to make a valid follow up request?如何将这七个缺失的 cookies 保存到我的后端,以便提出有效的跟进请求?

For reference: https://www.dhl.de/de/privatkunden/pakete-empfangen/verfolgen.html供参考: https://www.dhl.de/de/privatkunden/pakete-empfangen/verfolgen.html

Cookies in browser request浏览器请求中的 Cookies

Thank you so much in advance, any resource means a lot to me.非常感谢您,任何资源对我来说都意义重大。

Javascript, document.cookies. Javascript,文档.cookies。

(I need more characters to hit the minumum for an answer) (我需要更多字符才能达到最低答案)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM