2
Rebol(R2)在調用read函數(它似乎返回頁面內容)後保存HTTP響應頭文件?Rebol - HTTP響應頭文件
Rebol(R2)在調用read函數(它似乎返回頁面內容)後保存HTTP響應頭文件?Rebol - HTTP響應頭文件
不知道有一個簡單的方法可以在直讀後獲取標題。
你可以得到他們,如果你打開一個端口:
hp: open http://www.rebol.com
probe hp/locals/headers
make object! [
Date: "Sat, 07 May 2011 07:08:35 GMT"
Server: "Apache"
Last-Modified: "Tue, 22/Feb/2011/06:52:26/+GMT"
Accept-Ranges: "bytes"
Content-Encoding: none
Content-Type: "text/html"
Content-Length: "9062"
Location: none
Expires: none
Referer: none
Connection: "close"
Authorization: none
]