XFA Specification
Chapter 23, FormCalc Specification
URL Built-in Functions
897
Put()
This function uploads the given data into the given URL.
Syntax
Put(s1, s2[, s3])
Parameters
s1
is the URL being uploaded.
s2
is the data being uploaded.
s3
is an optional string containing the name of the code page that is to be used to encode the data before
uploading it. Valid code page names include:
- UTF-8,
- UTF-16,
- ISO8859-1, or
- any recognized
[IANA]
character encoding.
If s3 is omitted, the code page defaults to "UTF-8".
Returns
The empty string, or an error exception if unable to upload the data.
Examples
Put("ftp://www.example.com/pub/fubu.xml",
"<?xml version='1.0' encoding='UTF-8'?><msg>hello world!</msg>")
returns nothing if the ftp server permits the user to upload some xml data to the file
pub/fubu.xml
.
Get()
and
Post()
Home Index Bookmark Pages
Pages: Home Index All Pages