2011-05-06 190 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 
    ]