User Guide
cfhttp 215
charset Opt For
request:
UTF-8
For
response:
charset
specified
by
response
Content-
Type
header, or
UTF-8 if
response
does not
specify
charset.
The character encoding of the request, including the URL
query string and form or file data, and the response. The
following list includes commonly used values:
• utf-8
• iso-8859-1
• windows-1252
• us-ascii
• shift_jis
• iso-2022-jp
• euc-jp
• euc-kr
• big5
• euc-cn
• utf-16
For more information character encodings, see
www.w3.org/International/O-charset.html.
resolveURL Opt no • no: does not resolve URLs in the response body. As a
result, any relative URL links in the response body do not
work.
• yes: resolves URLs in the response body to absolute
URLs, including the port number, so that links in a
retrieved page remain functional. Applies to these
HTML tags:
■
- img src
■
- a href
■
- form action
■
- applet code
■
- script src
■
- embed src
■
- embed pluginspace
■
- body background
■
- frame src
■
- bgsound src
■
- object data
■
- object classid
■
- object codebase
■
- object usemap
Does not resolve URLs if the
file and path attributes are
used.
throwOnError Opt no • yes: if the server returns an error response code, throws
an exception that can be caught using the
cftry and
cfcatch or ColdFusion error pages.
• no: does not throw an exception if an error response is
returned. In this case, your application can use the
cfhttp.StatusCode variable to determine if there was an
error and its cause.
Attribute Req/Opt Default Description