HTTP/Form - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : HTTP/Form

HTTP

  

Form

  

Send form data to a URL

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

Form(URI, formdata)

Parameters

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.

Options

• 

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.

Description

• 

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.

Examples

status,data,headersHTTP:-Formhttp://www.ssa.gov/cgi-bin/popularnames.cgi,year=1990,top=20,number=n:

HTTP:-Codestatus

OK

(1)

typedata,string

true

(2)

data1..39

<html> <head><title>Popular Baby Names<

(3)

typeheaders&comma;table

true

(4)

headersContent-Type

text/html; charset=UTF-8

(5)

status,data,headersHTTP:-Formhttp://www.wunderground.com//history/airport/CYKF/2010/05/13/DailyHistory.html&comma;HideSpecis=0&comma;format=0&comma;method=GET&colon;

HTTP:-Codestatus

OK

(6)

typedata&comma;string

true

(7)

data1..160

TimeEDT,TemperatureC,Dew PointC,Humidity,Sea Level PressurehPa,VisibilityKm,Wind Direction,Wind SpeedKm/h,Gust SpeedKm/h,Precipitationmm,Events,Conditions,Wind

(8)

typeheaders&comma;table

true

(9)

headersConnection

close

(10)

status,data,headersHTTP:-Formhttp://chart.apis.google.com/chart&comma;chs=100x100&comma;cht=qr&comma;chl=http://mapleprimes.com/&colon;

HTTP:-Codestatus

OK

(11)

typedata&comma;rtable

true

(12)

data

Compatibility

• 

The HTTP[Form] command was introduced in Maple 15.

• 

For more information on Maple 15 changes, see Updates in Maple 15.

See Also

HTTP

HTTP[Code]

HTTP[Post]