正文

包含回應正文。

語法

HTTPObject.Body

  • Body 是字串(唯讀)
範例

該指令碼將執行 GET 要求,並列印正文:

Function Main

Dim HTTPObj as Object

ip = "www.gfi.com"

port = 80

Set HTTPobj = HTTP.Connect (ip,port)

'設定要求類型

HTTPobj.GetURL("/")

'經由自動驗證通過 Proxy

'驗證必須設為 1

HTTPobj.Authentication = 1

'傳送 GET 要求

HTTPResponse = HTTPobj.SendRequest ()

echo HTTPobj.Body

End Function