User Guide
34 The HTTP API
Returns
An object that represents the reply from the server. The data property of this object is a string
that contains the location where the file was saved, which is expressed as a file:// URL.
Normally the
statusCode property of the object contains the status code that is received
from the server. However, if a disk error occurs while Dreamweaver is saving the file on the
local drive, the
statusCode property contains an integer that represents an error code. See
MMHttp.getFile() for a list of possible error codes.
MMHttp.getText()
Availability
Macromedia Dreamweaver UltraDev 4, enhanced in Dreamweaver MX.
Description
Retrieves the contents of the document at the specified URL.
Arguments
URL, {serverScriptsFolder}
■ The URL argument is an absolute URL on a web server. If http:// is omitted from the
URL, Dreamweaver assumes HTTP protocol.
■ The serverScriptsFolder argument is an optional string that names a particular
folder—relative to the Configuration folder on the application server—from which you
want to retrieve server scripts. To retrieve the scripts, Dreamweaver uses the appropriate
transfer protocol (such as FTP, WebDAV, or Remote File System). Dreamweaver copies
these files to the _mmServerScripts subfolder under the root folder for the current site.
If an error occurs, Dreamweaver reports it in the
statusCode property of the returned object.
MMHttp.getTextCallback()
Availability
Dreamweaver UltraDev 4, enhanced in Dreamweaver MX.
Description
Retrieves the contents of the document at the specified URL and passes it to the
specified function.
000_DW_API_Print.book Page 34 Wednesday, July 20, 2005 11:58 AM