This content has been marked as final. Show 4 replies
You will have to use SOMETHING that will post the file. One example,
using CF would be to use <cfhttp>. This template then could be tiggered
by some other process, such as a scheduled task, to run when desired.
<cfhttp url="a.web.site/fileAccept.cfc" ...>
<cfhttpparam name="theFile" value="file"...>
Thanks for the reply but it is important to note that the process will not be initiated from a CF Server. A Client machine will have a file that it needs to automatically upload to my CF Server. The Web Service code can put that file where it needs to go, but I have no idea what to do on the client side to send that file to the ColdFusion Web Service. I can't use a browser, this has to be ran by a task on the client, no end user action required.
Thanks for the reply but it is important to note that the process will
not be initiated from a CF Server.
I understood that. But SOMETHING needs to be running on the client.
Pick your poison in what this something is written in. C++, VB, Java,
Fortran, Cobol, whatever. This something will then get a file and
submit it to a URL.
I found a solution - and yes the best things in life are free! You should check out a tool called curl.
curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, FILE and LDAP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer resume, proxy tunneling and a busload of other useful tricks. Text curl