Lista completa de cabeceras de solicitud HTTP
✅ Mostrar la información de las cabeceras HTTP, que incluye cuatro partes: generales, de solicitud, de respuesta y de entidad.
Datos & Referencias
| Header | Description | Example |
|---|---|---|
| Accept | Specifies the content types that the client can receive. | Accept: text/plain, text/html |
| Accept-Charset | Character sets that the browser can accept. | Accept-Charset: iso-8859-5 |
| Accept-Encoding | Specifies the compression encoding types that the browser can support. | Accept-Encoding: compress, gzip |
| Accept-Language | Languages acceptable to the browser. | Accept-Language: en, zh |
| Accept-Ranges | Indicates that the client can request one or more sub-ranges of a resource. | Accept-Ranges: bytes |
| Authorization | HTTP authorization credentials. | Authorization: credentials |
| Cache-Control | Specifies the caching mechanisms that must be followed for requests and responses. | Cache-Control: no-cache |
| Connection | Indicates whether a persistent connection is required. (HTTP/1.1 uses persistent connections by default) | Connection: close |
| Cookie | Cookies saved under the request domain are sent to the web server with the request. | Cookie: $Version=1; Skin=new; |
| Content-Length | The length of the request content. | Content-Length: 348 |
| Content-Type | MIME type of the request body. | Content-Type: application/x-www-form-urlencoded |
| Date | The date and time the request was sent. | Date: Tue, 15 Nov 2010 08:12:31 GMT |
| Expect | Specific behavior required from the server. | Expect: 100-continue |
| From | The email address of the user making the request. | From: user@jsons.cn |
| Host | The domain name and port of the server being requested. | Host: www.jsons.cn |
| If-Match | The request is valid only if it matches the specified entity value. | If-Match: "specific-value" |
| If-Modified-Since | The request succeeds only if the resource has been modified after the specified date; otherwise returns 304. | If-Modified-Since: Sat, 29 Oct 2010 19:43:31 GMT |
| If-None-Match | Returns 304 if the content has not changed. Compares the previous ETag sent by the server with the current one. | If-None-Match: "specific-value" |
| If-Range | If the entity has not changed, the server sends the missing part; otherwise sends the entire entity. Parameter is also an ETag. | If-Range: "specific-value" |
| If-Unmodified-Since | The request succeeds only if the entity has not been modified since the specified date. | If-Unmodified-Since: Sat, 29 Oct 2010 19:43:31 GMT |
| Max-Forwards | Limits the number of times a request can pass through proxies or gateways. | Max-Forwards: 10 |
| Pragma | Includes implementation-specific directives. | Pragma: no-cache |
| Proxy-Authorization | Authorization credentials for connecting to a proxy. | Proxy-Authorization: credentials |
| Range | Requests only a portion of the entity, specifying the range. | Range: bytes=500-999 |
| Referer | The address of the previous web page from which the current request originated. | Referer: http://www.jsons.cn |
| TE | Specifies the transfer encodings the client is willing to accept and whether to accept trailers. | TE: trailers, deflate;q=0.5 |
| Upgrade | Requests the server to switch to another protocol if supported. | Upgrade: HTTP/2.0, SHTTP/1.3, IRC/6.9, RTA/x11 |
| User-Agent | Contains information about the user agent making the request. | User-Agent: Mozilla/5.0 (Linux; X11) |
| Via | Informs about intermediate proxies or gateways through which the request is sent. | Via: 1.0 fred, 1.1 nowhere.com (Apache/1.1) |
| Warning | Information about potential issues with the message entity. | Warning: 199 Miscellaneous warning |
| Header | Description | Example |
|---|---|---|
| Accept-Ranges | Indicates whether the server supports range requests and what type of ranges. | Accept-Ranges: bytes |
| Age | The estimated time (in seconds) since the response was generated by the origin server or a proxy cache. | Age: 12 |
| Allow | Lists the valid request methods for the resource. Returns 405 if not allowed. | Allow: GET, HEAD |
| Cache-Control | Indicates caching directives for all caching mechanisms in the request-response chain. | Cache-Control: no-cache |
| Content-Encoding | The compression encoding type applied to the returned content. | Content-Encoding: gzip |
| Content-Language | The language of the response body. | Content-Language: en, zh |
| Content-Length | The length of the response body. | Content-Length: 348 |
| Content-Location | An alternate location for the requested resource. | Content-Location: /index.htm |
| Content-MD5 | The MD5 checksum of the returned resource. | Content-MD5: MD5-value |
| Content-Range | The byte range of this part within the full response body. | Content-Range: bytes 21010-47021/47022 |
| Content-Type | The MIME type of the returned content. | Content-Type: text/html; charset=utf-8 |
| Date | The date and time when the response was generated by the origin server. | Date: Tue, 15 Nov 2010 08:12:31 GMT |
| ETag | The current value of the entity tag for the requested resource. | ETag: "current-entity-tag" |
| Expires | The date and time after which the response is considered stale. | Expires: Thu, 01 Dec 2010 16:00:00 GMT |
| Last-Modified | The last modification date of the requested resource. | Last-Modified: Tue, 15 Nov 2010 12:45:26 GMT |
| Location | Redirects the recipient to a different URL to complete the request or identify a newly created resource. | Location: http://www.jsons.cn |
| Pragma | Implementation-specific directives that may apply to any recipient along the response chain. | Pragma: no-cache |
| Proxy-Authenticate | Specifies the authentication scheme and parameters applicable to the proxy. | Proxy-Authenticate: Basic |
| Refresh | Used for redirection or after creating a new resource. Redirects after a specified number of seconds (widely supported by browsers). | Refresh: 5; url=http://www.jsons.cn |
| Retry-After | Informs the client when to retry if the entity is temporarily unavailable. | Retry-After: 120 |
| Server | The name of the web server software. | Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) |
| Set-Cookie | Sets an HTTP cookie. | Set-Cookie: UserID=JohnDoe; Max-Age=3600; Version=1 |
| Trailer | Indicates headers present in the trailer of a chunked transfer encoding. | Trailer: Max-Forwards |
| Transfer-Encoding | Specifies the form of encoding used to safely transfer the entity to the user. | Transfer-Encoding: chunked |
| Vary | Instructs downstream caches whether to use a cached response or revalidate with the origin server. | Vary: * |
| Via | Informs the client about intermediate proxies through which the response was sent. | Via: 1.0 fred, 1.1 nowhere.com (Apache/1.1) |
| Warning | Warns about possible issues with the entity. | Warning: 199 Miscellaneous warning |
| WWW-Authenticate | Indicates the authentication scheme the client should use for the requested resource. | WWW-Authenticate: Basic |