標籤:ide tun mime stat 服務 文法 head 中間 使用
發現對於HTTP協議不能脫口而出,故而怒翻資料,RFC2616 。
在其abstract中是這麼說HTTP的,應用程式層協議,generic、無狀態。其特點之一是 the typing and negotiation of data representation, allowing systems to be built independently of the data being transferred.
Messages以一種類似Internet mail使用的格式來傳輸,由MIME(Multipurpose Internet Mail Extensions)定義。
術語
connection:在兩個程式之間因通訊目的而建立的傳輸層虛擬迴路。
message:HTTP通訊的基本單元,由符合文法的結構化的八位組(octets)序列組成,通過connection傳輸。
request:一個HTTP request message。
response:一個HTTP response message。
resource:一個網路資料對象或者服務,可由URI確定。resources可能以multiple representations呈現(如多種語言、多種格式、多種尺寸等)。
entity:request或response承載傳輸的資訊。一個entity由中繼資料(entity-header fields形式)和內容(entity-body)組成。
representation:response中的entity,服從於content negotiation。一個特別的response status可能存在multiple representations。
content negotiation:當服務一個request時,挑選合適的representation的機制。任何response的entity的representation都可被negotiated(包括error responses)。
variant:任意時刻,一個resource可能關聯到一個或多個representation(s)。每一個representation就是一個variant。variant術語的使用,不意味著resource服從於content negotiation。
client:一個program,其建立connections的目的是發送requests。
user agent:發起request的client。通常是瀏覽器、編輯器、spiders(爬蟲),或其他終端使用者工具。
server:一個application program,接受connections以服務requests,會發回responses。任何program都可能既是client也是server。
origin server:一個server,具備指定的resource,或者將要建立該resource。
proxy:中間級program,同時扮演server和client角色,以代表其他clients發起requests。一個”transparent proxy”是說除了必要的proxy認證和識別之外,不會修改request或response的proxy。一個”non-transparent proxy”則會修改request或response,以為user agent提供一些額外的服務,例如group annotation services, media type transformation, protocol reduction, or anonymity filtering。
gateway:一個server,但為一些server扮演中間級。不像proxy,一個gateway接收requests就像它是requested resource的原始server一樣;發起request的client不會意識到它是同一個gateway通訊。
tunnel:
HTTP/1.1 學習