HTTP/Post - Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : HTTP/Post

HTTP[Post] - Post data to a URL using HTTP POST and retrieve the result

Calling Sequence

Post(URI, content, options)

Parameters

URI

-

host, port, and URL path of the form http://host:port/path/to/file; the uniform resource identifier

content

-

content of the HTTP request

Description

• 

Post is an extension of Get.  In addition to being able to data in the Request-URI, Post is also able to send other data to the server in the content argument.  This command is generally used to implement the sending of data via an HTML form.

• 

Post returns a sequence (code, content, headers) with code set to the return code sent by the server, content containing the body of the server response, and  headers as a table.

Examples

status,data,headers:=HTTP:-Posthttp://www.ssa.gov/cgi-bin/popularnames.cgi,year=1990&top=20&number=n,'headers'=Content-Type=application/x-www-form-urlencoded,'timeout'=100:

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

(5)

See Also

HTTP, HTTP[Code], HTTP[Get]


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