Page 445 - HTTP权威指南
P. 445
GET / HTTP/1.1
Host: www.joes-hardware.com Hi! Welcome to
User-agent: spiffy multimedia browser Joe's Hardware
Accept-language: fr;q=1.0 Store.
Hola! Bienvenido
a Joe's Hardware
Store.
Bonjour
法语用户 Web服务器 Bonjour!
Bienvenue a Joe's
Hardware Store
缓存
GET / HTTP/1.1
Host: www.joes-hardware.com
User-agent: spiffy multimedia browser
Accept-language: es;q=1.0
Hola! Bienvenido
a Joe's Hardware
Bonjour Store.
西班牙语用户 Web服务器
Bienvenido
缓存
图 17-1 缓存根据内容协商首部发送给客户端正确的响应
17.4.2 Vary首部
这里是浏览器和服务器发送的一些典型的请求及响应首部:
GET http://www.joes-hardware.com/ HTTP/1.0
Proxy-Connection: Keep-Alive
User-Agent: Mozilla/4.73 [en] (WinNT; U)
Host: www.joes-hardware.com
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/
png, */*
Accept-Encoding: gzip
Accept-Language: en, pdf
Accept-Charset: iso-8859-1, *, utf-8
HTTP/1.1 200 OK
Date: Sun, 10 Dec 2000 22:13:40 GMT
Server: Apache/1.3.12 OpenSSL/0.9.5a (Unix) FrontPage/4.0.4.3
Last-Modified: Fri, 05 May 2000 04:42:52 GMT
Etag: "1b7ddf-48-3912514c"
Accept-Ranges: Bytes
Content-Length: 72
Connection: close
Content-Type: text/html
420 | 第 17 章