Rebol - HTTP响应头 [英] Rebol - HTTP response headers

查看:203
本文介绍了Rebol - HTTP响应头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Rebol(R2)在调用read函数之后保存HTTP响应头(它似乎只返回页面内容)?

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

推荐答案

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

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

如果你打开一个端口,你可以得到它们

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
    ]

这篇关于Rebol - HTTP响应头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆