推 abchu:所以用Host應該沒差吧^^" 04/02 11:53
※ 引述《sam (瘦身中)》之銘言:
: http://www.csie.ntu.edu.tw/~network2006/slide/hw1tips.ppt
關於投影片第 13 頁
根據 RFC 2616 (HTTP 1.1) 5.2 節
1. If Request-URI is an absoluteURI, the host is part of the
Request-URI. Any Host header field value in the request MUST be
ignored.
因此
GET http://network2006.csie.org/index.html HTTP/1.0
Host: network2006.csie.org
GET http://network2006.csie.org/index.html HTTP/1.0
Host: xDDDDD
GET http://network2006.csie.org/index.html HTTP/1.0
Host: lalalalala
這三個都是一樣的...
不過遊覽器應該不會惡搞 xD
--
Favonia --- 我的個人版,歡迎參觀 :D
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.30.41