annuaire recherche
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
personnages

默认值

这些是在上下文不提供更好信息时发送的值。请注意,所有浏览器都会添加*/*MIME类型以涵盖所有情况。这通常用于通过浏览器的地址栏或通过HTML <a>元素启动的请求。

用户代理

评论

火狐

text / html的,应用/ XHTML + xml的,应用/ XML; Q = 0.9,* / *; Q = 0.8

该值可以使用network.http.accept.default参数进行修改。

Safari,Chrome

application / xml,application / xhtml + xml,text / html; q = 0.9,text / plain; q = 0.8,image / png,* / *; q = 0.5

资源

Safari 5

text / html的,应用/ XHTML + xml的,应用/ XML; Q = 0.9,* / *; Q = 0.8

这是对先前Accept头的改进,因为它不再对text / html上面的image / png进行排名

Internet Explorer 8

image / jpeg,application / x-ms-application,image / gif,application / xaml + xml,image / pjpeg,application / x-ms-xbap,application / x-shockwave-flash,application / msword,* / *

请参阅IE和Accept Header(IEInternals的MSDN博客)。

Edge

text / html,application / xhtml + xml,image / jxr,* / *


Opera

text / html,application / xml; q = 0.9,application / xhtml + xml,image / png,image / webp,image / jpeg,image / gif,image / x-xbitmap,* / *; q = 0.1


图像的值

当通过HTML <img>元素请求图片时,用户代理通常会设置一个特定的媒体类型列表来欢迎。

用户代理

评论

火狐

* / *(自Firefox 47开始)image / png,image / *; q = 0.8,* / *; q = 0.5(之前)

这个值可以使用image.http.accept参数修改。

苹果浏览器

*/*


Chrome

图像/ WEBP,图像/ *,* / *; Q = 0.8

* * *在支持webp之前

Internet Explorer 8或更早版本

*/*

请参阅IE和Accept Header(IEInternals的MSDN博客)

Internet Explorer 9

image / png,image / svg + xml,image / *; q = 0.8,* / *; q = 0.5

查看Fiddler对于Internet Explorer 9更好(IEInternals的MSDN博客)

视频值

当请求视频时,可以通过<video>HTML元素,大多数浏览器都使用特定的值。

用户代理

评论

Firefox早于3.6

不支持<video>


Firefox 3.6及更高版本

audio / webm,audio / ogg,audio / wav,audio / *; q = 0.9,application / ogg; q = 0.7,video / *; q = 0.6; * / *; Q = 0.5

见bug 489071

Chrome

*/*


Internet Explorer 8或更早版本

不支持<video>


音频资源的值

当请求音频文件时,例如通过<audio>HTML元素时,大多数浏览器都使用特定的值。

用户代理

评论

Firefox 3.6及更高版本

音频/ WEBM,音频/ OGG,音频/ WAV,音频/ *; Q = 0.9,应用/ OGG; Q = 0.7,视频/ *; Q = 0.6,* / *; Q = 0.5

见bug 489071

Safari,Chrome

?


Internet Explorer 8或更早版本

不支持<audio>


Internet Explorer 9

?


脚本的值

当请求脚本时(例如通过<script>HTML元素),某些浏览器使用特定的值。

用户代理

评论

火狐

*/*

看到错误170789

Safari,Chrome

*/*


Internet Explorer 8或更早版本

*/*

请参阅IE和Accept Header(IEInternals的MSDN博客)

Internet Explorer 9

application / javascript,* / *; q = 0.8

查看Fiddler对于Internet Explorer 9更好(IEInternals的MSDN博客)

CSS样式表的值

当请求CSS样式表时,通过<link rel="stylesheet">HTML元素,大多数浏览器都使用特定的值。

用户代理

评论

Firefox 4

文本/ CSS,* / *; Q = 0.1

出现错误170789

Safari 5

文本/ CSS,* / *; Q = 0.1


Internet Explorer 8或更早版本

*/*

请参阅IE和Accept Header(IEInternals的MSDN博客)

Internet Explorer 9

文/ CSS

查看Fiddler对于Internet Explorer 9更好(IEInternals的MSDN博客)

Chrome 12

文本/ CSS,* / *; Q = 0.1


Opera 11.10

text / html,application / xml; q = 0.9,application / xhtml + xml,image / png,image / webp,image / jpeg,image / gif,image / x-xbitmap,* / *; q = 0.1


Konqueror 4.6

文本/ CSS,* / *; Q = 0.1


Article précédent: Article suivant: