Microsoft Operations Manager

GetHTTPFile Method

The GetHTTPFilemethod retrieves the URL at the specified location.

[VBScript] INet.GetHTTPFile(URL String,
[Data Variant], [BytesRead Variant], [AccessType Variant])

Parameters

URL
Specifies the URL to access.
Data
Returns the text at the specified URL. This parameter is optional.
BytesRead
Returns the number of bytes read from the specified URL. This parameter is optional.
AccessType

Flags that specify options for an Internet connection. This parameter is optional. This parameter can be one of the following values:

INTERNET_OPEN_TYPE_PRECONFIG = 0 (default)

Retrieves the proxy or direct configuration from the registry.

INTERNET_OPEN_TYPE_DIRECT = 1

Resolves all host names locally.

INTERNET_OPEN_TYPE_PROXY = 3

Passes requests to the proxy unless a proxy bypass list is supplied and the name to be resolved bypasses the proxy. In this case, the function uses INTERNET_OPEN_TYPE_DIRECT.

INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY = 4

Retrieves the proxy or direct configuration from the registry and prevents the use of a startup JScript (compatible with ECMA 262 language specification) or Internet Setup (INS) file.

Return Value

Boolean

Remarks

The INetobject should not be used when creating new scripts. It is included only to support existing scripts. For more information about equivalent APIs, see Using Operating System APIs in Scripts.

Requirements

Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1

See Also

INet Object


Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.