Home
Products & Services
Developers
XML
Contents Table
On-Line Help
Release Notes
Install Notes
Binaries
Sources
XML-RPC
RSS
About & Contact
Want to know more?
Use the following form to contact someone at EnAppSys for more information.

XMLHTTPCall Object

See Also   Example   Properties   Methods   Events

Models an HTTP call used to fetch a document off the web.

Class Diagram

Remarks

The XMLHTTPCall object provides a very versatile set of proprties that can be set to precisely configure a call to an HTTP server. Using the HostName and HostURI properties or the URL property, the resource to be fetched can be specified. The HostPort property allows the HTTP port to be configured. The UserAgent property allows the user agent code/name to be specified. The HTTPOpenRequestFlags, HTTPVersion, InternetOpenFlags, InternetOpenType and RequestType all allow you to tweak a number of flags used by wininet.dll to handle things like cookies, encryption and the like. The ConnectTimeOut, SendTimeOut, ReceiveTimeOut and WinInetVersion all allow you to set timeouts. The Username and Password properties are used to set up HTTP basic authentication. The ProxyName and ProxyBypass properties are used to set up proxy server details.

After all the parameters of the call are set up using the properties outlined above, any HTTP Headers that are to be sent can be specified with the HeadersToSend property and if any data is to be POSTed then the DataToPost property can be used.

The SubmitRequest method can then be used to submit the request to the remote server. The HeadersReceived property can be used to examine the returned HTTP headers and the DataReturned property can be used to examine the returned data.

Default values defined each time the object is created are as follows:

PropertyDefault Value
ConnectTimeOut300000
DataToPost""
HeadersToSendNothing
HostName""
HostPort80
HostURI""
HTTPVersionHTTP_1_0
InternetOpenFlags0
InternetOpenTypeINTERNET_OPEN_TYPE_PRECONFIG
Passwordnot set (i.e. vbNullString)
ProxyBypassnot set (i.e. vbNullString)
ProxyNamenot set (i.e. vbNullString)
ReceiveTimeOut3600000
RequestTypeHTTP_GET
SendTimeOut300000
URL""
UserAgent"vbXML Vx.y.z" (where x is the major version number, y is the minor version number and z is the revision number)
Usernamenot set (i.e. vbNullString)
WinInetVersionThe version of WinInet.dll
Terms of Use, Cookie and Privacy PoliciesAll Materials on this Website are Copyright EnAppSys Ltd. ©2002 - 2012
Registered Office: EnAppSys Ltd, Arnison House, 139B The High Street, Yarm, Stockton-on-Tees TS15 9AY
Registered in England and Wales, Number: 4685938