Posting Form Values With The ColdFusion CFHttp And CFHttpParam Tags

<!--- Set up response string buffer. --->
<cfset REQUEST.Response = CreateObject(
	"java",
	"java.lang.StringBuffer"
	).Init()
	/>
 
<!--- Loop over form collection and add to response string. --->
<cfloop item="strKey" collection="#FORM#">
 
	<!--- Add key/value pair to response. --->
	<cfset REQUEST.Response.Append(
		IIF(
			REQUEST.Response.Length(),
			DE( "||" ),
			DE( "" )
			) &
		strKey & "=" &
		FORM[ strKey ]
		) />
 
</cfloop>
 
<!---
	Reset output and write response to page. Then, abort out
	of page so that we ensure no other data is written to the
	reponse stream.
--->
<cfcontent
	type="text/plain"
	reset="true"
 
/><cfset WriteOutput( REQUEST.Response.ToString() )
 
/><cfabort />

For Cut-and-Paste