Xbasic

HTTP Functions

Description

Alpha Anywhere provides the following HTTP functions.

Name
Description
A5_HTTP Function

Returns either 'http://' or 'https://' depending on whether SSL is running.

How to pick an HTTP Function

There are two groups of HTTP functions available in the Xbasic language - those implemented purely in Xbasic and those that rely on a Microsoft object that is included with the Windows operating system.

HTTP_DELETE Function

Use the HTTP method DELETE to retrieve the specified URL

HTTP_DOWNLOAD Function

Download a file via the HTTP protocol and display a progress dialog

HTTP_DOWNLOAD_BG Function

Downloads the resource at the specified Source_URL using the HTTP protocol and saves it to Target_File.

HTTP_FETCH Function

Sends an HTTP request to a server and retrieves the response

HTTP_FETCH_PAGE2 Function

Use HTTP GET or POST to retrieve the specified URL.

HTTP_GET Function

Use the HTTP method GET to retrieve the specified URL.

HTTP_GET_PAGE Function

Gets the contents of a web page.

HTTP_GET_PAGE2 Function

Use the HTTP method GET to retrieve the specified URL.

HTTP_POST Function

Use the HTTP method POST to retrieve the specified URL

HTTP_POST_PAGE2 Function

Use the HTTP method POST to retrieve the specified URL

HTTP_PUT Function

Use the HTTP method PUT to retrieve the specified URL

HTTP_UNCHUNK Function

Unchunk an HTTP message body that has had a chunked transfer encoding applied.

httpd_autoactivate Function

Automatically install and activate server licenses

httpd_defaultCipherList Function

Returns the default cipher list to be used by the server if the ciphers used by the server have not been set.

httpd_demomodeserverwarning Function

Show a warning when the Application Server is started without a license.

httpd_gettimeskewinminutes Function

Get time skew compared to NIST in minutes. Returns 0 if NIST cannot be contacted.

httpd_gettimeskewinseconds Function

Get time skew compared to NIST in seconds. Returns 0 if NIST cannot be contacted.

httpd_license_activate Function

Activates the specified Application Server license

httpd_license_deactivate Function

Deactivates the specified Application Server license

httpd_unlicenseddevserverwarning Function

Show a warning when the Development Server is started without a license.

httpdate Function

Creates an HTTP compliant date/time string

xmlhttp_classname Function

Return the correct XMLHTTP class name based on what is installed in the current operating system