Rebol - HTTP响应头

时间:2011-05-06 19:32:24

标签: http-headers rebol

Rebol(R2)在调用read函数(似乎只返回页面内容)后保存HTTP响应头的位置在哪里?

1 个答案:

答案 0 :(得分:2)

不确定在直接阅读后有一种简单的方法来获取标题。

如果您打开端口

,则可以获取它们
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
    ]