WebBrowser::AsyncPostWebPage (open)

Asynchronously submits a POST request

Syntax

LOADLIB "wh::internet/webbrowser.whlib";

ASYNC FUNCTION AsyncPostWebPage(STRING url, RECORD ARRAY variables, STRING enctype, STRING charset)

Parameters

STRING url

URL to send the request to

RECORD ARRAY variables

Variables to post to the URL

BOOLEAN binary

If TRUE, sets the Content-Transfer-Encoding to 'binary' (only used for 'multipart/form-data' encoding)

STRING name

Name of the variable

STRING type

Mime-type of the variable contents (only used for 'multipart/form-data' encoding)

value

Value for the variable. Can be BLOB when using 'multipart/form-data' encoding, must be STRING otherwise

STRING enctype

Encoding type to use ('multipart/form-data' for HTTP multipart form-encoding encoding, otherwise URL encoding)

STRING charset

Character set to encode the variables in (defaults to 'utf-8')

Return value

Promise, which fulfills when the request has completed. Resolves to TRUE on success