亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

directory search
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
characters

HTTP 請求的目標(biāo)被稱為“資源”,這個性質(zhì)沒有進(jìn)一步定義; 它可以是文檔,照片或其他任何東西。每個資源都由 HTTP 中用于標(biāo)識資源的統(tǒng)一資源標(biāo)識符(URI)標(biāo)識。

Web 上資源的身份和位置主要由一個 URL(統(tǒng)一資源定位器,一種 URI)提供。有時候,原因是同一個 URI 沒有給出身份和位置:Alt-Svc當(dāng)請求的資源需要客戶訪問另一個位置時,HTTP 使用特定的 HTTP 頭。

網(wǎng)址(URLs)和URN

網(wǎng)址(URLs)

最常見的 URI 形式是統(tǒng)一資源定位符(URL),稱為網(wǎng)址。

https://developer.mozilla.org
https://developer.mozilla.org/en-US/docs/Learn/https://developer.mozilla.org/en-US/search?q=URL

任何這些 URL 都可以輸入到瀏覽器的地址欄中,以告訴它加載關(guān)聯(lián)的頁面(資源)。

一個 URL 由不同的部分組成,其中一些是強(qiáng)制性的,另一些是可選的。一個更復(fù)雜的例子可能是這樣的:

http://www.example.com:80/path/to/myfile.html?key1=value1&key2=value2#SomewhereInTheDocument

URNs

統(tǒng)一資源名稱(URN)是在特定名稱空間中按名稱標(biāo)識資源的 URI。

urn:isbn:9780141036144urn:ietf:rfc:7230

兩個 URN 相對應(yīng)

  • 喬治奧威爾的“九八十四”一書,

  • IETF 規(guī)范7230,超文本傳輸協(xié)議(HTTP / 1.1):消息語法和路由。

統(tǒng)一資源標(biāo)識符(URI)的語法

計劃或協(xié)議

http://是協(xié)議。它指示瀏覽器必須使用哪種協(xié)議。通常它是 HTTP 協(xié)議或其安全版本 HTTPS。Web 需要其中的一種,但瀏覽器也知道如何處理其他協(xié)議,如mailto:(打開郵件客戶端)或ftp:處理文件傳輸,所以如果您看到這樣的協(xié)議,請不要感到驚訝。常用的方案是:

方案

描述

數(shù)據(jù) data

數(shù)據(jù) URI

文件 file

主機(jī)特定的文件名

FTP

文件傳輸協(xié)議

HTTP / HTTPS

超文本傳輸協(xié)議(安全)

郵寄地址 mailto

電子郵件地址

SSH

安全的外殼

tel

電話

urn

統(tǒng)一資源名稱

視圖源

資源的源代碼

ws / wss

(加密)WebSocket連接

權(quán)威

www.example.com是管轄命名空間的域名或權(quán)威。它指示正在請求哪個 Web 服務(wù)器?;蛘?,可以直接使用 IP 地址,但由于它不太方便,因此不常用在 Web 上。

港口(出口或接口)

:80是這個實例中的端口。它表示用于訪問 Web 服務(wù)器上資源的技術(shù)“門”。如果 Web 服務(wù)器使用 HTTP 協(xié)議的標(biāo)準(zhǔn)端口(HTTP 為80,HTTPS 為443)來授予其資源訪問權(quán)限,通常會忽略它。否則它是強(qiáng)制性的。

路徑

/path/to/myfile.html是 Web 服務(wù)器上資源的路徑。在 Web 早期,這樣的路徑代表了 Web 服務(wù)器上的物理文件位置。如今,它主要是一個 Web 服務(wù)器處理的抽象,沒有任何物理現(xiàn)實。

詢問

?key1=value1&key2=value2是提供給 Web 服務(wù)器的額外參數(shù)。這些參數(shù)是用&符號分隔的鍵/值對列表。在將資源返回給用戶之前,Web 服務(wù)器可以使用這些參數(shù)來執(zhí)行額外的工作。每個 Web 服務(wù)器都有自己的參數(shù)規(guī)則,知道特定 Web 服務(wù)器如何處理參數(shù)的唯一可靠方法是詢問 Web 服務(wù)器所有者。

分段

#SomewhereInTheDocument是資源本身另一部分的錨點。錨表示資源內(nèi)部的一種“書簽”,為瀏覽器指示位于該“書簽”位置的內(nèi)容。例如,在 HTML 文檔中,瀏覽器將滾動到定義錨點的位置; 在視頻或音頻文檔上,瀏覽器將嘗試轉(zhuǎn)到錨點代表的時間。值得注意的是,#之后的部分(也稱為片段標(biāo)識符)永遠(yuǎn)不會被發(fā)送到請求的服務(wù)器。

示例

https://developer.mozilla.org/en-US/docs/Learn
tel:+1-816-555-1212git@github.com:mdn/browser-compat-data.git
ftp://example.org/resource.txt
urn:isbn:9780141036144

產(chǎn)品規(guī)范

規(guī)范

標(biāo)題

RFC 7230,第2.7節(jié):統(tǒng)一資源標(biāo)識符

超文本傳輸協(xié)議(HTTP / 1.1):消息語法和路由

Previous article: Next article: