开发者

Rebol - HTTP response headers

开发者 https://www.devze.com 2023-03-03 04:57 出处:网络
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 aft

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

精彩评论

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