当前位置:网站首页>网络个各种协议
网络个各种协议
2022-08-01 07:47:00 【幼稚园大哥大】
认识URL
平常我们俗称的“网址”其实就是我们说的URL

HTTP协议格式
HTTP请求

HTTP响应

HTTP的方法
get方法
- 直接获取对应的资源信息
- get方法可以带参数(url的?的后面都是get的参数)
- 处理不敏感的数据
post方法
- 将数据交给服务器是通过正文提交的,不是通过url提交的
- post-》cont-length:正文
- 处理加密内容数据
get和post之间的区别:post可以比get传更多的参数而且更加私密。
HTTP的状态码

HTTP常见的Header
- Content-Type: 数据类型(text/html等)
- Content-Length: Body的长度
- Host: 客户端告知服务器, 所请求的资源是在哪个主机的哪个端口上
- User-Agent: 声明用户的操作系统和浏览器版本信息
- referer: 当前页面是从哪个页面跳转过来的
- location: 搭配3xx状态码使用, 告诉客户端接下来要去哪里访问
- Cookie: 用于在客户端存储少量信息. 通常用于实现会话(session)的功能
边栏推荐
- 【MySQL】操作表DML相关语句
- 第02章 MySQL的数据目录【1.MySQL架构篇】【MySQL高级】
- 数据分析5
- pytest interface automation testing framework | parametrize source code analysis
- Case practice --- Resnet classic convolutional neural network (Mindspore)
- LabVIEW中局部变量和全局变量的分配
- pytest接口自动化测试框架 | 集成Allure测试报告
- Go supports OOP: use struct instead of class
- pytest接口自动化测试框架 | 跳过测试类
- Delphi MDI appliction 文档最大化显示、去掉最大化最小化等按钮
猜你喜欢

Golang:go获取url和表单属性值

【HDLBits 刷题】Circuits(1)Combinational Logic

Electromagnetic compatibility introductory tutorial (6) test project

第02章 MySQL的数据目录【1.MySQL架构篇】【MySQL高级】

Vim扩展内容

The use of Golang: go template engine

SAP ABAP ALV+SMARTFORS 表分页 报表打印程序

22牛客多校1 J.Serval and Essay (启发式合并)

Three aspects of Ali: How to solve the problem of MQ message loss, duplication and backlog?

企业数据虚拟化综合指南
随机推荐
金山打字通 官网 下载
nodetype中值1、2、3分别代表什么意思
USB Protocol (2) Terminology
Self-made a remote control software - VeryControl
将aof文件转换为命令waoffle安装和使用
Do I need to introduce any dependencies to write data to clickhouse using flinksql?
插入排序—直接插入排序和希尔排序
配置我的kitty
Shell执行SQL发邮件
LevelSequence源码分析
USB 协议 (二) 术语
Golang:go模版引擎的使用
POJ2421道路建设题解
special day to remember
sum of special numbers
数据分析5
如何使用Photoshop合成星轨照片,夜空星轨照片后期处理方法
GO error handling
pytest接口自动化测试框架 | 跳过测试类
22 Grab the Seat 1 C.Grab the Seat (Geometry + Violence)