Name
CFHTTP
Synopsis
<CFHTTP> [<CFHTTPPARAM>] ... </CFHTTP>
Performs HTTP and HTTPS GET and POST operations on remote web servers.
Attributes
-
METHOD="GET|POST" Specifies whether
CFHTTPuses the HTTP GET or POST method. Required.-
URL="URL" The full URL of the remote web page to GET or POST to. If you are trying to resolve a URL that doesn’t end in a filename (such as http://www.myserver.com), and you set the
RESOLVEURLattribute toYes, you need to supply a trailing forward slash (http://www.myserver.com/) for this attribute in order for certain URLs (such as those inIMGtags) to resolve properly. Additionally, a port number may be appended to the URL. (http://www.myserver.com:8080/). If a port number is appended to the URL, it overrides any value set with thePORTattribute. Required.-
RESOLVEURL="Yes|No" Yescauses any partial or relative URLs embedded in the retrieved document to be fully resolved, so that all links in the document remain valid. Optional. The default isNo.-
REDIRECT="Yes|No" Whether or not to allow a
CFHTTPrequest to be automatically redirected. If set toNo, theCFHTTPrequest fails upon encountering a redirect. If theTHROWONERRORattribute is set toYes, an error code and message are written to theCFHTTP.Status_Codereturn variable. You can see where a request would have been redirected by referencing theLOCATIONkey in theCFHTTP.ResponseHeaderstructure. TheCFHTTPtag can follow up to five redirections per request. If the limit is exceeded, ColdFusion ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access