Specifications
Chapter 23286
MMHttp.postText()
Description
Uses an HTTP post request to pass the specified data to the specified URL. Typically the data
that is associated with a post operation is form-encoded text, but it can be any type of data that
the server expects to receive.
Arguments
URL, dataToPost {,contentType}
• URL is an absolute URL on a web server; if http:// is omitted from the URL, Dreamweaver MX
assumes HTTP protocol.
• dataToPost is the data to be posted. If the third argument is "application/x-www-form-
urlencoded"
or is omitted, dataToPost must be form-encoded, according to section 8.2.1 of
the RFC 1866 specification (available at http://www.faqs.org/rfcs/rfc1866.html).
• contentType is the content type of the data to be posted. If omitted, this argument defaults to
"application/x-www-form-urlencoded".
Returns
An object that represents the reply from the server. The data property of this object is a string
that contains the data that results from the post operation.
MMHttp.postTextCallback()
Description
Performs an HTTP post of the text to the specified URL and passes the reply from the server to
the specified function. Typically the data associated with a post operation is form-encoded text,
but it can be any type of data that the server expects to receive.
Arguments
callbackFunc, URL, dataToPost {,contentType}
• callbackFunc is the name of the JavaScript function to call when the HTTP request is
complete.
• URL is an absolute URL on a web server; if http:// is omitted from the URL, Dreamweaver MX
assumes HTTP protocol.
• dataToPost is the data to be posted. If the third argument is "application/x-www-form-
urlencoded"
or is omitted, data must be form-encoded, according to section 8.2.1 of the
RFC 1866 specification (available at http://www.faqs.org/rfcs/rfc1866.html).
• contentType is the content type of the data to be posted. If omitted, this argument defaults to
"application/x-www-form-urlencoded".
Returns
An object that represents the reply from the server. The data property of this object is a string
that contains the data that results from the post operation.