MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference page 120

Cfml language reference
Table of Contents

Advertisement

96
Encryption — CFHTTP is capable of using Secure Sockets Layer (SSL) for
negotiating secured transactions over the wire.
CFHTTP.StatusCode— CFHTTP throws an error and provides the
CFHTTP.StatusCode variable for access to the HTTP error string associated with
the error if the THROWONERROR attribute is set to YES. See the following table
for all the variables returned by CFHTTP .
CFHTTP Variables
Variable Names
#CFHTTP.FileContent#
#CFHTTP.MimeType#
#CFHTTP.ResponseHeader
#CFHTTP.Header#
#CFHTTP.StatusCode#
Example
<!--------------------------------------------------------------------
This example shows the use of CFHTTP to pull information from a web page.
----------------------------------------------------------------------->
<HTML>
<HEAD>
<TITLE>
CFHTTP Example
</TITLE>
</HEAD>
<BODY>
<H3>CFHTTP Example</H3>
<P>This example shows the ability of CFHTTP to pull
the contents of a web page from the Internet, and shows how
you can get the following information by using CFHTTP variables:
</P>
<UL>
<LI>display the page (fileContent)
<LI>derive the MIME type of the page (mimeType)
<LI>find the header responses (responseHeader).
Description
Returns the contents of the file for text and
MIME files.
Returns the MIME type.
[http_hd_key]
Returns the response headers. If there is
#
only one instance of a header key, then the
value may be accessed as a simple type. If
there is more than one instance, then the
values are placed in an array within the
ResponseHeader structure.
Returns the raw response header.
Returns the HTTP error code and
associated error string if THROWONERROR
is YES.
CFML Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents