MIME Types
can be used to retrieve HTTP requests, either text or binary data. To determine the type of data retrieved examine its MIME type which is stored in CFHTTP.MIMEType. (Applies to: ColdFusion 5 or later)
can be used to retrieve HTTP requests, either text or binary data. To determine the type of data retrieved examine its MIME type which is stored in CFHTTP.MIMEType. (Applies to: ColdFusion 5 or later)
requests return HTTP data as well as HTTP response headers. To access returned response headers use CFHTTP.ResponseHeader, this is a CFML structure with the header name as the key. (Applies to: ColdFusion 5 or later)
Most operations return queries but some return values (getting directory names or checking for file existence, for example). In these situations the value returned by will be available as CFFTP.ReturnValue. (Applies to: ColdFusion 4 or later)
is used to programmatically send files to and from FTP servers. Unlike most other ColdFusion operations, files and directories in are case-sensitive (as this is how most FTP servers function). (Applies to: ColdFusion 4 or later)
Need to check if a file or directory exists on the other end of an FTP connection? Don't retrieve the FTP directory list just to check it. ACTION="exists" (or ACTION="existsdir" and ACTION="existsfile") will execute quicker. (Applies to: ColdFusion 4 or later)
By default makes a single retry before failing. This value can be raised if needed by passing a count to the RETRYCOUNT attribute. (Applies to: ColdFusion 4 or later)
If is accessed via a proxy server the name of the proxy server to be used should be passed to the PROXYSERVER attribute. Multiple servers may be specified if needed. (Applies to: ColdFusion 4 or later)
By default will switch between ASCII and binary transfer modes automatically - ASCII is used for files with extensions txt, htm, html, cfm, cfml, shtm, shtml, css, asp, and asa, and binary is used for all other extensions. The list of extensions can be overridden using the ASCIIEXTENSIONLIST...
To read binary files with make sure to specify ACTION="READBINARY" (and not the default ACTION="READ"). Binary files include images, audio, and video files. (Applies to: ColdFusion 5)
Applications executed using may require that parameters (arguments) be passed to them. Parameters should not be specified as part of the executable NAME, rather, pass them to the ARGUMENTS attribute. (Applies to: ColdFusion 5)