目录 搜索
Guides Access control CORS Authentication Browser detection using the user agent Caching Caching FAQ Compression Conditional requests Connection management in HTTP 1.x Content negotiation Content negotiation: List of default Accept values Cookies CSP Messages Overview Protocol upgrade mechanism Proxy servers and tunneling Proxy servers and tunneling: Proxy Auto-Configuration (PAC) file Public Key Pinning Range requests Redirections Resources and specifications Resources and URIs Response codes Server-Side Access Control Session Guides: Basics Basics of HTTP Choosing between www and non-www URLs Data URIs Evolution of HTTP Identifying resources on the Web MIME Types MIME types: Complete list of MIME types CSP Content-Security-Policy Content-Security-Policy-Report-Only CSP: base-uri CSP: block-all-mixed-content CSP: child-src CSP: connect-src CSP: default-src CSP: font-src CSP: form-action CSP: frame-ancestors CSP: frame-src CSP: img-src CSP: manifest-src CSP: media-src CSP: object-src CSP: plugin-types CSP: referrer CSP: report-uri CSP: require-sri-for CSP: sandbox CSP: script-src CSP: style-src CSP: upgrade-insecure-requests CSP: worker-src Headers Accept Accept-Charset Accept-Encoding Accept-Language Accept-Ranges Access-Control-Allow-Credentials Access-Control-Allow-Headers Access-Control-Allow-Methods Access-Control-Allow-Origin Access-Control-Expose-Headers Access-Control-Max-Age Access-Control-Request-Headers Access-Control-Request-Method Age Allow Authorization Cache-Control Connection Content-Disposition Content-Encoding Content-Language Content-Length Content-Location Content-Range Content-Type Cookie Cookie2 Date DNT ETag Expect Expires Forwarded From Headers Host If-Match If-Modified-Since If-None-Match If-Range If-Unmodified-Since Keep-Alive Large-Allocation Last-Modified Location Origin Pragma Proxy-Authenticate Proxy-Authorization Public-Key-Pins Public-Key-Pins-Report-Only Range Referer Referrer-Policy Retry-After Server Set-Cookie Set-Cookie2 SourceMap Strict-Transport-Security TE Tk Trailer Transfer-Encoding Upgrade-Insecure-Requests User-Agent User-Agent: Firefox Vary Via Warning WWW-Authenticate X-Content-Type-Options X-DNS-Prefetch-Control X-Forwarded-For X-Forwarded-Host X-Forwarded-Proto X-Frame-Options X-XSS-Protection Methods CONNECT DELETE GET HEAD Methods OPTIONS PATCH POST PUT Status 100 Continue 101 Switching Protocols 200 OK 201 Created 202 Accepted 203 Non-Authoritative Information 204 No Content 205 Reset Content 206 Partial Content 300 Multiple Choices 301 Moved Permanently 302 Found 303 See Other 304 Not Modified 307 Temporary Redirect 308 Permanent Redirect 400 Bad Request 401 Unauthorized 403 Forbidden 404 Not Found 405 Method Not Allowed 406 Not Acceptable 407 Proxy Authentication Required 408 Request Timeout 409 Conflict 410 Gone 411 Length Required 412 Precondition Failed 413 Payload Too Large 414 URI Too Long 415 Unsupported Media Type 416 Range Not Satisfiable 417 Expectation Failed 426 Upgrade Required 428 Precondition Required 429 Too Many Requests 431 Request Header Fields Too Large 451 Unavailable For Legal Reasons 500 Internal Server Error 501 Not Implemented 502 Bad Gateway 503 Service Unavailable 504 Gateway Timeout 505 HTTP Version Not Supported 511 Network Authentication Required Status
文字

HTTP 是一个非常可扩展的协议。它依赖于一些基本概念,如资源和 URI 的概念,简单的消息结构以及用于通信流的客户端 - 服务器结构。在这些基础概念的基础上,多年来出现了许多扩展,通过创建新的 HTTP 方法或头来增加新的功能和新的语义。

文章

HTTP概述描述HTTP是什么以及它在Web体系结构中的角色,以及它在协议栈中的位置。HTTPHTTP的演变创建于20世纪90年代初,并且已经延长了几次。本文详细介绍了它的历史,并介绍了HTTP / 0.9,HTTP / 1.0,HTTP / 1.1和现代HTTP / 2以及多年来引入的小新奇。协商HTTP版本解释客户端和服务器如何协商特定的HTTP版本,并最终升级使用的协议版本。资源和URI简要介绍Web上资源,标识符和位置的概念。在Web上标识资源描述如何参考Web资源以及如何定位它们。数据URIs直接嵌入其表示的资源的特定种类的URI。数据URI非常方便,但有一些注意事项。分离资源的标识和位置:Alt-Svc HTTP标头大部分时间标识和Web资源的位置是共享的,这可以通过Alt-Svc标头进行更改.MIME typesSince HTTP / 1.0,可以传输不同类型的内容。这篇文章解释了如何使用Content-Type标题和MIME标准。在www和非www的URLsAdvice之间选择使用www前缀域还是不使用,本文解释了选择的结果以及如何制作它。HTTP会话的流程这篇基础文章描述了一个典型的HTTP会话:当您点击浏览器中的链接时会发生什么...... HTTP MessagesHTTP请求或响应期间传输的消息具有非常清晰的结构; 这篇介绍性文章描述了这个结构,它的目的和可能性。HTTP / 2HTTP / 2中的帧和消息结构封装并表示二进制帧中的HTTP / 1.x消息。本文解释了帧结构,目的以及编码方式。HTTP / 1.xHTTP / 1.1中的连接管理是支持持久连接和流水线的HTTP的第一个版本。Accept-作为浏览器公布其更喜欢的格式,语言或编码的一种方式。本文解释了这种广告是如何发生的,服务器如何作出反应以及如何选择最适当的响应。

上一篇: 下一篇: