HTTP/Form - Help

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;&apos;table&apos;

true

(4)

headersContent-Type

text/html; charset=UTF-8

(5)

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

HTTP:-Codestatus

OK

(6)

typedata&comma;&apos;string&apos;

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;&apos;table&apos;

true

(9)

headersConnection

close

(10)

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

HTTP:-Codestatus

OK

(11)

typedata&comma;&apos;rtable&apos;

true

(12)

data

1 .. 648 ArrayData Type: integer1Storage: rectangularOrder: Fortran_order

(13)

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]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam