WebBrowser::PostWebPage (open)
Submits a POST request
Syntax
LOADLIB "wh::internet/webbrowser.whlib";
BOOLEAN FUNCTION PostWebPage(STRING url, RECORD ARRAY variables, STRING enctype, STRING charset)Parameters
STRING urlURL to send the request to
RECORD ARRAY variablesVariables to post to the URL
BOOLEAN binaryIf TRUE, sets the Content-Transfer-Encoding to 'binary' (only used for 'multipart/form-data' encoding)
STRING nameName of the variable
STRING typeMime-type of the variable contents (only used for 'multipart/form-data' encoding)
valueValue for the variable. Can be BLOB when using 'multipart/form-data' encoding, must be STRING otherwise
STRING enctypeEncoding type to use ('multipart/form-data' for HTTP multipart form-encoding encoding, otherwise URL encoding)
STRING charsetCharacter set to encode the variables in (defaults to 'utf-8')
Return value
BOOLEANTRUE on success