当前位置:网站首页>Reptile foundation I
Reptile foundation I
2022-07-25 11:25:00 【fatfatmomo】
APP Generally, it encrypts itself ,HTTPS(http+SSL encryption ), Attention to crawling by reptiles .
The client sends request To server , Server return response
REQUEST Part of the HTTP HEADER

charset: Decoding method , Prevent confusion code
Encoding: Some of them are compressed packages
User-Agent: Tell the server what client I am , Disguise as a browser to prevent anti crawling
Cookie: Login use , There are other functions .
login return setcookie,
because http Is stateless connection ,client Send to server http request , for the first time login, Send it again for the second time , The server still doesn't know client Who is it? .
In fact, for the first time login after , Server's response return setcookie, Equivalent to the server to client Assigned a id No. for identification .client After that, every time you send cookie add .
RESPONSE Of HTTP HEADER
Location: Indicate the jump link
Set-cookie:Userid
statuscode: Response status code :2xx- success ,3xx- Jump ,4xx- Client error ,500- Server error .
300- Multiple available resources , Can be disposed of or discarded ;
301- Redirect ;
302- Redirect ;
304- Requested resource not updated , discarded .
python library , Such as urllib2 Redirect has been automatically skipped , Auto resend location Of request Return to code .

边栏推荐
- 从宏观到微观 零基础 详解bert
- tensorflow入门
- mysql主从复制与读写分离
- MySQL | GROUP_CONCAT函数,将某一列的值用逗号拼接
- shell-第五章作业
- 【flask高级】结合源码解决flask经典报错:Working outside of application context
- Redis 入门
- Detailed explanation of the implementation method of DNS separation and resolution
- PostgreSQL踩坑 | ERROR: operator does not exist: uuid = character varying
- SQL语言(二)
猜你喜欢

复习背诵整理版

SQL注入 Less17(报错注入+子查询)

ArcMap无法启动解决方法
![TPS calculation in performance test [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]](/img/b2/7a6b99f0ec907b83ac58ed44b23062.png)
TPS calculation in performance test [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]

Code representation learning: introduction to codebert and other related models

mysql主从复制与读写分离

Learn NLP with Transformer (Chapter 6)

【flask高级】结合源码解决flask经典报错:Working outside of application context

Learn NLP with Transformer (Chapter 1)

MySQL | GROUP_CONCAT函数,将某一列的值用逗号拼接
随机推荐
LVS负载均衡之LVS-DR搭建Web群集与LVS结合Keepalived搭建高可用Web群集
UE4.26源码版学习广域网独立服务器时遇到的客户端运行黑屏问题
mysql高级语句(一)(总有一个人的出现,让你的生活不再继续糟糕)
mysql主从复制与读写分离
全网显示 IP 归属地,是怎么实现的?
My colleague looked at my code and exclaimed: how can I use a singleton in unity
NowCoderTOP1-6——持续更新ing
NowCoderTOP7-11——持续更新ing
Multiply Floyd "suggestions collection"
Learn NLP with Transformer (Chapter 1)
[high concurrency] deeply analyze the execution process of worker threads in the thread pool through the source code
Learn NLP with Transformer (Chapter 3)
Learn NLP with Transformer (Chapter 2)
Smart cloud IOT platform STM32 esp8266-01s simple wireless light control
TPS calculation in performance test [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]
SQL注入 Less23(过滤注释符)
Reinforcement Learning 强化学习(三)
HCIA experiment (06)
Learn PHP -- phpstudy tips mysqld Exe: Error While Setting Value ‘NO_ ENGINE_ Solution of substitution error
Shell fourth day homework