Rebol (R2)在调用read函数(它似乎只是返回页面内容)之后,将HTTP响应头保存在哪里?
发布于 2011-05-07 15:11:39
不确定是否有一种简单的方法可以在直接读取后获得标题。
如果您打开端口,就可以获取它们
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
]https://stackoverflow.com/questions/5916164
复制相似问题