2011-05-06 93 views

回答

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 
    ]