XFA Specification
Chapter 23, FormCalc Specification
URL Built-in Functions
896
Returns
The post response as a string, or an error exception if unable to post the data. The response string will be
decoded according to the response's content type. For example, if the server indicates the response is
UTF-8 encoded, then this function will UTF-8 decode the response data before returning to the
application.
Examples
Post("http://tools_build/scripts/jfecho.cgi",
"user=joe&passwd=xxxxx&date=27/08/2002",
"application/x-www-form-urlencoded")
posts some urlencoded login data to a server and returns that server's acknowledgement page.
Req = "<?xml version='1.0' encoding='UTF-8'?>"
Req = concat(Req, "<soap:Envelope>")
Req = concat(Req, " <soap:Body>")
Req = concat(Req, " <getLocalTime/>")
Req = concat(Req, " </soap:Body>")
Req = concat(Req, "</soap:Envelope>")
Head = "SOAPAction: ""http://www.Nanonull.com/TimeService/getLocalTime"""
Url = "http://www.nanonull.com/TimeService/TimeService.asmx/getLocalTime"
Resp = post(Url, Req, "text/xml", "utf-8", Head)
posts a SOAP request for the local time to some server, expecting an XML response back.
See Also
Get()
and
Put()
Home Index Bookmark Pages
Pages: Home Index All Pages