User Guide

260 Chapter 14 Scripting the Visual Tools Object Model
HTTPProvider Object
The HTTPProvider object is a general purpose HTTP protocol object. You can use it
in VTOM scripts for low-level HTTP operations. The
HTTPProvider object is an
alternative to simplified HTTP-related methods, such as the
GetURL method of the
main Application object, which has a limited number of customizable HTTP
parameters. Using the
HTTPProvider object, you can initialize specific HTTP
provider properties (such as
Proxy, ProxyPort, Username, Password), and execute
GET, POST, and HEAD HTTP method requests. For detailed information on many of the
properties in this section, see http://www.w3.org/Protocols/ .
Properties
Agent
Syntax Agent: OleVariant
Description Sets and gets the identification of the client that initiates a request. Use this property
to identify yourself as a client type or emulate a browser.
AuthorizationRequest
Syntax AuthorizationRequest: OleVariant (read-only)
Description The WWW-Authenticate response-header field. The 401 (unauthorized) response
messages include this field. The field value consists of at least one challenge that
indicates the authentication scheme(s) and parameters applicable to the
Request-URI.
ContentLength
Syntax ContentLength: Integer (read-only)
Description Specifies the length of the received content stream.
ContentType
Syntax ContentType: OleVariant (read-only)
Description Specifies the MIME content type of the received content stream.
ContentTypePost
Syntax ContentTypePost: OleVariant
Description Sets and gets the Content-Type entity-header field, which indicates the media type of
the Entity-Body sent to the recipient. For the
HEAD method, indicates the media type
that is sent if the request is a
GET.