[thelist] CGI to Cold Fusion

Raymond Camden jedimaster at macromedia.com
Tue Jun 5 07:38:46 CDT 2001


>
> <cfhttp url="http://127.0.0.1/path/to/test.cgi" method="get"></cfhttp>
>
> <cfscript>
> Evaluate("#CFHTTP.FileContent#");
> </cfscript>
>
> <cfoutput>myvar1: #myvar1#<br />myvar2: #myvar2#</cfoutput>
>

I would strongly recommend _against_ using CFHTTP if the CGI is on the same
server. If you have 4.5 or greater, use CFEXECUTE. It should be much
quicker.

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email   : jedimaster at macromedia.com
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda





More information about the thelist mailing list