XFA Specification
Chapter 23, FormCalc Specification
URL Built-in Functions
894
URL Built-in Functions
FormCalc
provides a number of functions to manipulate the content of URLs, including the ability to:
●
●
●
download data from a URL,
upload data to a URL, and
post data to a URL
These functions are only operational when a protocol host has been provided to the
FormCalc
engine.
The list of supported URL protocols (http, https, ftp, file) may thus vary with each protocol hosting
environment.
Get()
This function downloads the contents of the given URL.
Syntax
Get(s1)
Parameters
s1
is the URL being downloaded.
Returns
The downloaded data as a string, or an error exception if unable to download the URL's contents.
Examples
Get("http://www.w3.org/TR/REC-xml-names/")
returns the Namespaces in XML standard from the World Wide Web Consortium.
Get("ftp://ftp.gnu.org/gnu/GPL")
returns a document our Legal Department studies carefully.
Get("http://example.com?sql=SELECT+*+FROM+projects+FOR+XML+AUTO,+ELEMENTS")
returns the result of an SQL query as an XML document.
See Also
Post()
Put()