CFHTTP Tag Syntax  
 
 

The basic syntax for the CFHTTP tag is listed below:

<CFHTTP URL="hostname"
    USERNAME="username"
    PASSWORD="password"
    NAME="queryname"
    COLUMNS="query_columns"
    PATH="path"
    FILE="filename"
    METHOD="get_or_post"
    DELIMITER="character"

    TEXTQUALIFIER="character"
    RESOLVEURL="Yes/No"
    PROXYSERVER="hostname">
</CFHTTP>
 
 
  Note  
 

A closing tag is only required for CFHTTP Post operations.

 
 
  Resolving links in retrieved pages  
 
 

To maintain relative links in pages you retrieve from a server via CFHTTP, set the RESOLVEURL attribute to Yes. The following HTML tags, which can contain links, are resolved when RESOLVEURL=Yes:

  • 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
 
 
  Note  
 

If a URL on a retrieved page points to a binary file, the page is not displayed. You can store the file locally by entering a path as the value of the PATH attribute.



 
 
BackUp LevelNext
 
 

allaire     AllaireDoc@allaire.com
    Copyright © 1998, Allaire Corporation. All rights reserved.