正文

包含响应正文。

语法

HTTPObject.Body

  • Body 是字符串(只读)
示例

该脚本将执行 GET 请求,并打印正文:

函数 Main

Dim HTTPObj as Object

ip = "www.gfi.com"

port = 80

Set HTTPobj = HTTP.Connect (ip,port)

'设置请求类型

HTTPobj.GetURL("/")

'使用自动身份验证通过代理

'身份验证必须设置为 1

HTTPobj.Authentication = 1

'发送 GET 请求

HTTPResponse = HTTPobj.SendRequest ()

echo HTTPobj.Body

End 函数