connecting to an ftp site using CF?

2006-04-12 Thread Andy Matthews
I can get to this file in a browser:
ftp://tgftp.nws.noaa.gov/data/observations/metar/decoded/KHWV.TXT

So I assumed that I could simply use cfhttp to grab the contents of that
file. I was apparently wrong. So, I'm attempting to use cfftp for the first
time and it's not all that intuitive. I'm trying to open a connection
straight to that file but I get an error:
cfset theURL =
ftp://tgftp.nws.noaa.gov/data/observations/metar/decoded/KHWV.TXT;
cfftp action=open username= password= server=#theURL#

But I get an error:
An exception occurred when establishing a FTP connection. The cause of this
exception was that: java.net.UnknownHostException:
ftp://tgftp.nws.noaa.gov/data/observations/metar/decoded/KHWV.TXT.
The error occurred on line 3.

Line 3 being the cfftp call.

So then I try with just the domain:
ftp://tgftp.nws.noaa.gov

And get the same error. Then I tried copying the code directly from the MM
docs and I get the same error. We're running CFMX 6.1 on a *nix server. Is
there something I'm doing wrong?

!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237514
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: connecting to an ftp site using CF?

2006-04-12 Thread Nick de Voil
 So then I try with just the domain:
 ftp://tgftp.nws.noaa.gov

 And get the same error. Then I tried copying the code directly from the MM
 docs and I get the same error. We're running CFMX 6.1 on a *nix server. Is
 there something I'm doing wrong?

Take out the ftp://;

Nick




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237515
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: connecting to an ftp site using CF?

2006-04-12 Thread Andy Matthews
Yep...Just figured that out. Thanks Nick.

!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Nick de Voil [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 12, 2006 8:57 AM
To: CF-Talk
Subject: Re: connecting to an ftp site using CF?


 So then I try with just the domain:
 ftp://tgftp.nws.noaa.gov

 And get the same error. Then I tried copying the code directly from the MM
 docs and I get the same error. We're running CFMX 6.1 on a *nix server. Is
 there something I'm doing wrong?

Take out the ftp://;

Nick






~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237519
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54