Blogger Information
Blog 5
fans 0
comment 0
visits 2421
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
http和URL的基本常识
P粉123761497
Original
461 people have browsed it

http与URL的基本常识

http:基于请求与响应机制,客户端与服务器之间数据交换的协议
URL:请求的路由地址

1.http

  1. 客户端<=>服务器
  2. 请求 <=> 响应
  3. 连接:三次握手,确保双方收发正常
  4. 断开:四次挥手,确保双方完全断开

2.URL

(1) 静态URL
https://www.php.cn/course/1459.html

(2) 动态URL
http://site.cn:80/index.php/user/add?p=3&key=admin#link

index.php 应该由服务器路由到一个API(函数)去处理

1.htpps::协议
2.site.cn:域名
3.:80:端口
4./index.php:入口文件/应用程序/用一个函数来处理
5.user/add:PATH_INFO(可选的),用来做路由
6.?p=3&key=admin:查询参数/查询字符串/GET请求
7.#link:锚点/hash参数

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post