Error getting tags :
error 404Error getting tags :
error 404 libUrlFormData | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Expander triangle


Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
libUrlFormData formats data in the standard format suitable for sending to form processing CGIs and other processes on a web server.

put "John" into tName
put "Hello" into tMessage get
libUrlFormData("name", tName,"message", tMessage)
post it to url ""
In this case, the data posted to the url will look like this: name=John&message=Hello

Additional Comments
Expander triangle

The function accepts variable numbers of parameters and treats them as key-value pairs. The first parameter is the name of the first form part, the second the value of the first part, the third is the name of the second part, and so on.

Note: The Content-Type header is set to "Content-Type: application/x-www-form-urlencoded" by default when using post. There is no need to set the httpHeaders unless you have previously set the Content-Type header to something else.

Important! The libUrlFormData function is part of the Internet library. To ensure that the keyword works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions section of the Standalone Application Settings window, make sure "Internet Library" is selected in the list of script libraries.

Note: When included in a standalone application, the Internet library is implemented as a hidden group and made available when the group receives its first openBackground message. During the first part of the application's startup process, before this message is sent, the http keyword is not yet available. This may affect attempts to use this keyword in startup, preOpenStack, openStack, or preOpenCardhandlers in the main stack. Once the application has finished starting up, the library is available and the http keyword can be used in any handler.

User Comments
Expander triangle