> I am trying to automate a manual process where we have 
> to cut & paste a file to a web folder on a daily basis.  
> The cfhttp call I am currently using keeps failing with 
> the message "The specified path is invalid" in the filecontent 
> variable and a "405 Method Not Allowed" message in the
> statuscode variable and "HTTP/1.1 405 Method Not Allowed 
> Date: Wed, 23 Jul 2003 22:05:44 GMT Server: Apache/1.3.26 
> (Unix) FrontPage/5.0.2.2510 Allow: GET, HEAD, OPTIONS, 
> TRACE Connection: close Content-Type: text/html;
> charset=iso-8859-1" in the header variable.
> 
> The cfhttp call looks something like:
>       <cfhttp url="http://www.somedomain.com";
> path="some_folder/some_Sub_Folder" file="test.dat" method="POST"
> username="some_username" password="some_password">
>               <cfhttpparam file="C:\test.dat" type="FILE" 
> name="test.dat">
>       </cfhttp>
>       
>       <cfdump var="#cfhttp#">
> What do I need to do to get this working? If this is not 
> possible from CF, is there a good third party tool that 
> will do the job? Would a SQL Server DTS package do it?
> 
> The files are currently cut & pasted into the folder and that 
> works just fine, it really needs to be automated, though.

I don't think that Web Folders accept data through HTTP POST requests, but
instead accept HTTP PUT requests. You can't generate a PUT request with
CFHTTP, only GET and POST. You might be able to get it done with a
third-party HTTP component, though. However, I've never tried to do this, so
I can only speculate.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to