当前位置:网站首页>Selenium: Manipulating Cookies
Selenium: Manipulating Cookies
2022-08-01 05:07:00 【Mouse A who is not afraid of cats】
What are cookies
1. Cookie is used to identify the user's identity and maintain the login status when accessing the server (for the server to identify which user is currently accessing)
2. In the website, http requests are stateless (stateless means that the protocol has no memory for transaction processing, each request is completely independent and independent of each other, without any context information)
⑴ ⑴ That is to say, even if the server is connected to the server for the first time and the login is successful, the server still cannot know the currentWhich user's request is
2. The emergence of cookies is to solve this problem
3. After the first login, the server returns some data (cookies) to the browser, and then the browser saves it locally. When the user requests a response from the server for the second time, it will automatically store the last request.The cookie data is carried to the server, and the server can determine which user is currently requesting the data through the cookie data carried by the browser.After that, when the browser visits the website again, it will put the cookie information in the request header and send it to the server
2. The feeling is: the server returns the cookie information (the user is logged in) when visiting the website for the first time, and when visiting other pages of this website, only the cookie information is returned.You need to receive cookies to determine which user is currently based on cookies
4. Common web cookie information

Sele
边栏推荐
猜你喜欢

typescript22-接口继承

The difference between scheduleWithFixedDelay and scheduleAtFixedRate

C# | 使用Json序列化对象时忽略只读的属性

typescript26 - literal types

Excel做题记录——整数规划优化模型

Typescript22 - interface inheritance

typescript28 - value of enumeration type and data enumeration

typescript23-tuple

typescript26-字面量类型

Logitech Mouse Experience Record
随机推荐
挑战52天背完小猪佩奇(第01天)
Selenium:操作JS
Risk strategy important steps of tuning method
李迟2022年7月工作生活总结
(2022牛客多校四)A-Task Computing (排序+动态规划)
typescript27 - what about enumeration types
图片更新之后Glide加载依旧是原来的图片问题
项目风险管理必备内容总结
Excel做题记录——整数规划优化模型
JWL-11/2-99.9A电流继电器
Immutable
基于Arduino制作非接触式测温仪
pytroch、tensorflow对比学习—搭建模型范式(构建模型方法、训练模型范式)
pytorch、tensorflow对比学习—功能组件(激活函数、模型层、损失函数)
PAT乙级 1001 害死人不偿命的(3n+1)猜想
数组问题之《两数之和》以及《三数之和 》
pytorch、tensorflow对比学习—功能组件(优化器、评估指标、Module管理)
typescript22-接口继承
PMP 80个输入输出总结
Typescript22 - interface inheritance