Body

Contains the response body.

Syntax

HTTPObject.Body

  • Body is a String (read)
Example

This script will do a GET request and print out the body:

Function Main

Dim HTTPObj as Object

ip = "www.gfi.com"

port = 80

Set HTTPobj = HTTP.Connect (ip,port)

'Set up the request type

HTTPobj.GetURL("/")

'to pass through the proxy with automatic authentication

'Authentication needs to be set to 1

HTTPobj.Authentication = 1

'Send the GET request

HTTPResponse = HTTPobj.SendRequest ()

echo HTTPobj.Body

End Function