在
调用读取函数(似乎只是返回页面内容)后,Rebol (R2) 在哪里保存 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
]