|

ProxyData


(table) A table containing the user's proxy information. You can pass nil (the default) to use the default proxy settings that are currently configured through Internet Explorer (recommended), or pass a table of specific proxy settings. (You may need to gather this information from the user.)


The table is indexed by the following keys:



KEY


TYPE DESCRIPTION


PUserName


string


The proxy user name.


PPassword


string


The proxy password.


PServerAddress


string


The proxy server address.


Re t u r n s


(string) The contents of the file returned by the web script. If an error occurs, a blank string "" is returned. You can use Application.GetLastError to determine whether this action failed, and why.


See also: Related Actions


image

image

HTTP.TestConnection

OverviewExamples

boolean HTTP.TestConnection ( string URL,


number Timeout = 20, number Port = 80, table AuthData = nil,

table ProxyData = nil )


De s cr ip t ion


image

Checks whether the user is connected to the Internet.


Note: The default proxy settings that are currently configured through Internet Explorer will be used for testing the connection by default, and is the recommended method. However if you require alternate proxy settings, they can be passed through the ProxyData parameter.


Tip: If this action fails, you can retrieve specific HTTP error details using HTTP.GetHTTPErrorInfo.


P arame t er s


URL


(string) The full URL to use to check the Internet connection. The action will attempt to connect to this URL in order to determine if a connection is available.


image

Note: If the URL involves redirection, the initial connection will indicate success, and the redirected URL will not be connected to.


|