| Method Prototype | Description
|
| Sub AuthenticationName( Assigns newValue As String ) | set username
|
| Function AuthenticationName() As String | get username
|
| Sub AuthenticationPassword( Assigns newValue As String ) | set password
|
| Function AuthenticationPassword() As String | get password
|
| Sub ClearRequestHeaders() | remove all InternetHeaders set by SetRequestHeader
|
| Sub Constructor() | initialize with default options
|
| Sub DefaultPort( Assigns newValue As Integer ) | set port number (default is 443)
|
| Function DefaultPort() As Integer | get port number (default is 443)
|
| Function EncodeFormData( formData As Dictionary ) As String | get form data as URL-encoded string
|
| Function Error() As Boolean | get the last error state
|
| Function ErrorCode() As Integer | get the last error code
|
| Function Get( url As String ) As Boolean | perform an HTTP GET, often used to retrieve data from an HTTP server
|
| Sub HTTPProxyAddress( Assigns newValue As String ) | set the address of the HTTP proxy server
|
| Function HTTPProxyAddress() As String | get the address of the HTTP proxy server
|
| Sub HTTPProxyPort( Assigns newValue As Integer ) | set the port of the HTTP proxy server
|
| Function HTTPProxyPort() As Integer | get the port of the HTTP proxy server
|
| Function HTTPStatusCode() As Integer | get the current HTTP status code
|
| Function Post( url As String ) As Boolean | perform an HTTP POST, often used to send data to an HTTP server
|
| Function Reply() As String | get the response from the HTTP server
|
| Sub SetFormData( formData As Dictionary ) | use specified Dictionary to populate names and values of form data to be posted
|
| Sub SetPostContent( content As String, contentType As String ) | set the content type and data to be sent with a POST
|
| Sub SetRequestHeader( name As String, value As String ) | set the value of the specified InternetHeader
|
| Sub Timeout( Assigns newValue As Integer ) | set the timeout (in seconds). The maximum is 30 seconds.
|
| Function Timeout() As Integer | get the timeout (in seconds). The default is 20 seconds.
|
The HTTPSecureSocket class is used to send a request to an HTTP server and retrieve the response using a secure (SSL) connection. Both POST and GET methods are supported. Form data can be posted using a
and the SetFormData method. Or, raw post content can be set using SetPostContent.