HttpQueryInfo()

作者: olfen 最近更新时间: 20060116


Receives all the headers returned by the server or the size of the resource, in bytes or the content type of the resource (such as text/html).

Example output:

HTTP/1.1 200 OK
Date: Mon, 28 Aug 2006 11:04:51 GMT
Server: Apache/2.0.54 (Fedora)
Last-Modified: Sun, 27 Aug 2006 16:52:38 GMT
ETag: "21029b-2ba0-a30ea180"
Accept-Ranges: bytes
Content-Length: 11168
Content-Type: text/html

HttpQueryInfo(URL, QueryInfoFlag=21, Proxy="", ProxyBypass="")

关于函数的参数和返回值, 请参阅其源码.

备注

It lacks an external documentation. Look for that at head of source.

关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/topic10510.html

许可

不存在

示例

; #Include HttpQueryInfo.ahk
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

url1 = http://www.autohotkey.com
url2 = http://www.autohotkey.com/download/AutoHotkeyInstall.exe
MsgBox % HttpQueryInfo(url1)
MsgBox % HttpQueryInfo(url2, 5)
MsgBox % HttpQueryInfo(url2, 1)