HTTP
Form
Send form data to a URL
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
Form(URI, formdata)
URI
-
host, port, and URL path of the form http://host:port/path/to/file; the uniform resource identifier
formdata
content of the form given as a list of string=string values.
headers=list
list of header values; duplicate values will be combined into a single comma-separated list.
method= a string
either "GET" or "POST". Specify whether to submit form data as a get or post request. The default is POST.
timeout=posint
the number of seconds to wait for data before timing out.
forcemode=name
either text or binary. This forces the transfer to be done in the given mode regardless of the Content-Type reported by the server.
Form is a higher level command that accepts the form data as a list of equations, and then properly formats it as an HTTP request.
status,data,headers≔HTTP:-Form⁡http://www.ssa.gov/cgi-bin/popularnames.cgi,year=1990,top=20,number=n:
HTTP:-Code⁡status
OK
type⁡data,string
true
data1..39
<html> <head><title>Popular Baby Names<
type⁡headers,table
headersContent-Type
text/html; charset=UTF-8
status,data,headers≔HTTP:-Form⁡http://www.wunderground.com//history/airport/CYKF/2010/05/13/DailyHistory.html,HideSpecis=0,format=0,method=GET:
data1..160
TimeEDT,TemperatureC,Dew PointC,Humidity,Sea Level PressurehPa,VisibilityKm,Wind Direction,Wind SpeedKm/h,Gust SpeedKm/h,Precipitationmm,Events,Conditions,Wind
headersConnection
close
status,data,headers≔HTTP:-Form⁡http://chart.apis.google.com/chart,chs=100x100,cht=qr,chl=http://mapleprimes.com/:
type⁡data,rtable
data
The HTTP[Form] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
See Also
HTTP[Code]
HTTP[Post]
Download Help Document