Copy link to clipboard
Copied
I used to write cgi script by Perl.
And write client side tools by Delphi.
In Delphi code ,
call the cgi scrpit like this way :
IdHTTP1.Post('http://xxx.xxxx.com/cgi-bin/bsdb_conn.pl',ParamData,PostDataStream);
Right now, a customer ask me is it possible has same function at Coldfusion Environment?
Hardly googling this topic for hours , there are few pages about Coldfusion Cgi............
About coldfusion, not much experiences , basic cfm, cfc for insert, delete, update from Ms sql, that' all.
so, for this requirement, at last two things confusing me ,now.
1. Coldfusion could write and execute cgi scrpit like Perl does?
2. What kind of interface that Coldfusion cold apply for my Delphi client?Is it possible that no need changes in Delphi code?
Sorry, for my poor Coldfusion knowledge and bad English ability.
Hope someone could what I'm saying and show me a way to overcome it.
Copy link to clipboard
Copied
I guess it's a semantics thing. You'd "call a CGI script" in PERL, but you'd "make an HTTP request" in CF.
And <cfhttp> is what one does to make the request:
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7ffc.html
--
Adam
Copy link to clipboard
Copied
Hi, Adam:
thanks your reply.
Perl does not call cgi script, but execute it.
my client side tool(written by Delphi) calls cgi by http://xxxxx/aaaa.cgi , then perl executes aaa.cgi and pass result back to client side.
So, coldfusion could take apart which part of those actions ?
My requirement : Client side tools call cgi by http://xxxxx/aaaa.cgi , then Coldfusion sever executes aaaa.cgi and pass result back to client side.
I need to make sure my requirement is correct or not, first.
If it is correct, then I need to know how to build coldfusion code.
Anyway, I will study the article you point out first,
Thanks a lot.
Copy link to clipboard
Copied
In your example, ColdFusion would most likely take the place of the perl.
So instead of calling http://xxxxx/aaaa.cgi you would call http://xxxxx/aaaa.cfm and ColdFusion would execute the CFML template file named aaaa.cfm.
Unless you care to reconfigure your web server and ColdFusion so that it would process a CFML template file named aaaa.cgi. Which is technically possible, but I doubt many of us of would bother with the hassle.