![MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference Download Page 37](http://html1.mh-extra.com/html/macromedia/dreamweaver-8-dreamweaver-api/dreamweaver-8-dreamweaver-api_reference_3332054037.webp)
The HTTP API
37
Arguments
callbackFunc
,
URL
,
dataToPost
,
{contentType}, {serverScriptsFolder}
■
The
callbackFunc
argument is the name of the JavaScript function to call when the
HTTP request is complete.
■
The
URL
argument is an absolute URL on a web server; if http:// is omitted from the
URL, Dreamweaver assumes HTTP protocol.
■
The
dataToPost
argument is the data to be posted. If the third argument is
"application/x-www-form-urlencoded"
or omitted,
data
must be form-encoded
according to section 8.2.1 of the RFC 1866 specification (available at
www.faqs.org/rfcs/
rfc1866.html
).
■
The
contentType
argument, which is optional, is the content type of the data to be
posted. If omitted, this argument defaults to
"application/x-www-form-urlencoded"
.
■
The
serverScriptsFolder
argument is an optional string. It names a particular folder,
relative to the Configuration folder on the application server—to which you want to post
the data. To post the data, Dreamweaver uses the appropriate transfer protocol (such as
FTP, WebDAV, or Remote File System). Dreamweaver retrieves these data and passes
them to the function identified by
callbackFunc
.
If an error occurs, Dreamweaver reports it in the
statusCode
property of the returned object.
000_DW_API_Print.book Page 37 Wednesday, July 20, 2005 11:58 AM
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...