I was successful getting my program to run using <cfhttp. I created a 
virtual directory "programs" under IIS.
I need to pass a filename to the program.

How can I do this using the URL?

WHen I run the below code I get the error that a "input" file does not 
exist which is the correct error if the program was run on the console from 
a command prompt.

I need to pass a file into the URL, but how?

http://localhost/test.cfm

Template (test.cfm) code:

<cfhttp method="post"
         url="http://localhost/programs/runme.exe";
         username="test"
         password="test"
         resolveurl="yes:>

<cfhttpparam type="CGI" value="cgivar" name="mycgi">
</cfhttp>

<cfoutput>
#CFHTTP.MimeType#<br>
Length: #len(cfhttp.filecontent)#<br>
Content: #htmlcodeformat(cfhttp.filecontent)#<br>
</cfoutput>



+-----------------------------------------------------------------------------------+ 

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+------------------------------------------------------------------------------------+


______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to