开发者

Rebol - HTTP response headers

Where does Rebol (R2) save the HTTP response headers after a call to the read function (which just seems to return the page 开发者_JAVA技巧content)?


Not sure there is an easy way to get the headers after a straight read.

You can get them if you open a port:

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
    ]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜