Required for cfhttp POST operations, cfhttpparam is used to specify the parameters necessary to build a cfhttp POST.
<cfhttpparam name = "name"
type = "type"
value = "transaction type"
file = "filename">
cfftp, cfhttp, cfldap, cfmail, cfmailparam, cfpop
<!--- This example shows the use of cfhttpparam ---> <html> <head> <title>cfhttpparamExample</title> </head> <body bgcolor = silver> <H3>cfhttpparamExample</H3> <P>This view-only example shows the use ofcfhttpparamto show the values of passed variables on another HTML reference, accessed bycfhttp. The other file could simply output the value of form.formtest, url.url_test, cgi.cgi_test, and cookie.cookie_test to prove that this page is working: <H3>Sample Other File Listing</H3> <cfoutput>#HTMLCodeFormat(" <html> <head> <title>Sample Page</title> </head> <body> <H3>Output the passed variables</H3> <cfoutput> Form variable: ##form.form_test## <br>URL variable: ##URL.url_test## <br>Cookie variable: ##Cookie.cookie_test## <br>CGI variable: ##CGI.cgi_test## </cfoutput> </body> </html> ")#</cfoutput> <H3>Forcfhttpparamcode, see right frame</H3> <!--- <P> <cfhttpmethod = "POST" url = "http://localhost/someotherfile.cfm"> <cfhttpparamname = "form_test" type = "FormField" value = "This is a form variable"> <cfhttpparamname = "url_test" type = "URL" value = "This is a URL variable"> <cfhttpparamname = "cgi_test" type = "CGI" value = "This is a CGI variable"> <cfhttpparamname = "cookie_test" type = "Cookie" value = "This is a cookie"> </cfhttp> <cfoutput> #cfhttp.fileContent# </cfoutput> ---> </body> </html>