Re: Help with CFFTP

2000-12-11 Thread Jon Hall

try specifying the port of the ftp server in you cfftp tag

jon
- Original Message -
From: "Matt Lewis" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, December 11, 2000 6:22 PM
Subject: RE: Help with CFFTP


> Actually, I'm trying to initiate an FTP session from the CF Server (a UNIX
> box) to another host machine.
>
> This script takes a list of file names, gzips them, and then FTPs the
> gzipped file to an external host for storage.
>
> At 06:24 AM 12/11/2000 -0800, Dylan Bromby wrote:
> >are you trying to use CFFTP to upload a file from a browser client to a
> >server?
> >
> >
> >-Original Message-
> >From: Matt Lewis [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, December 11, 2000 5:47 AM
> >To: CF-Talk
> >Subject: Help with CFFTP
> >
> >
> >I'm having some trouble with uploading a file with the CFFTP command and
> >was wondering if someone could provide me some assistance.
> >
> >I'm able to login without any problem, and to execute a ChangeDir CFFTP
> >command without error.  However, when I attempt to upload a file with
> >the following command:
> >  > ACTION="PutFile"
> > CONNECTION="FtpConn"
> > TRANSFERMODE="ASCII"
> > LOCALFILE="#root#Admin/asset_downloader_HOLD/retry.txt"
> > RemoteFile="retry.log">
> >
> >Where FtpConn is the batched FTP connection I created when I opened the
FTP
> >command, LOCALFILE is set to the full path name of the file I want to
> >upload, and RemoveFile is set to the name of the file I want to create on
> >the remote host, I constantly get an error.  The FTP error is 15, and the
> >text is "500 BAD PORT COMMAND" or something like that.
> >
> >Does anyone have any ideas on what might be going wrong here?
> >
> >Thanks.
> >
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Help with CFFTP

2000-12-11 Thread Matt Lewis

Actually, I'm trying to initiate an FTP session from the CF Server (a UNIX 
box) to another host machine.

This script takes a list of file names, gzips them, and then FTPs the 
gzipped file to an external host for storage.

At 06:24 AM 12/11/2000 -0800, Dylan Bromby wrote:
>are you trying to use CFFTP to upload a file from a browser client to a
>server?
>
>
>-Original Message-
>From: Matt Lewis [mailto:[EMAIL PROTECTED]]
>Sent: Monday, December 11, 2000 5:47 AM
>To: CF-Talk
>Subject: Help with CFFTP
>
>
>I'm having some trouble with uploading a file with the CFFTP command and
>was wondering if someone could provide me some assistance.
>
>I'm able to login without any problem, and to execute a ChangeDir CFFTP
>command without error.  However, when I attempt to upload a file with
>the following command:
>  ACTION="PutFile"
> CONNECTION="FtpConn"
> TRANSFERMODE="ASCII"
> LOCALFILE="#root#Admin/asset_downloader_HOLD/retry.txt"
> RemoteFile="retry.log">
>
>Where FtpConn is the batched FTP connection I created when I opened the FTP
>command, LOCALFILE is set to the full path name of the file I want to
>upload, and RemoveFile is set to the name of the file I want to create on
>the remote host, I constantly get an error.  The FTP error is 15, and the
>text is "500 BAD PORT COMMAND" or something like that.
>
>Does anyone have any ideas on what might be going wrong here?
>
>Thanks.
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Help with CFFTP

2000-12-11 Thread James McCullough

You are connecting to a server that does not have ftp services or ftp
services turned on, so you get the 500 error.
Most of the time it means that the FTP address is wrong.

Check your connection by using the server attrib and see  if that works.
Then you will know that you need to change the connection value.



-Original Message-
From: Matt Lewis [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 5:47 AM
To: CF-Talk
Subject: Help with CFFTP


I'm having some trouble with uploading a file with the CFFTP command and
was wondering if someone could provide me some assistance.

I'm able to login without any problem, and to execute a ChangeDir CFFTP
command without error.  However, when I attempt to upload a file with
the following command:


Where FtpConn is the batched FTP connection I created when I opened the FTP
command, LOCALFILE is set to the full path name of the file I want to
upload, and RemoveFile is set to the name of the file I want to create on
the remote host, I constantly get an error.  The FTP error is 15, and the
text is "500 BAD PORT COMMAND" or something like that.

Does anyone have any ideas on what might be going wrong here?

Thanks.
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Help with CFFTP

2000-12-11 Thread Dylan Bromby

are you trying to use CFFTP to upload a file from a browser client to a
server?


-Original Message-
From: Matt Lewis [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 11, 2000 5:47 AM
To: CF-Talk
Subject: Help with CFFTP


I'm having some trouble with uploading a file with the CFFTP command and
was wondering if someone could provide me some assistance.

I'm able to login without any problem, and to execute a ChangeDir CFFTP
command without error.  However, when I attempt to upload a file with
the following command:


Where FtpConn is the batched FTP connection I created when I opened the FTP
command, LOCALFILE is set to the full path name of the file I want to
upload, and RemoveFile is set to the name of the file I want to create on
the remote host, I constantly get an error.  The FTP error is 15, and the
text is "500 BAD PORT COMMAND" or something like that.

Does anyone have any ideas on what might be going wrong here?

Thanks.
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Help with CFFTP

2000-12-11 Thread Matt Lewis

I'm having some trouble with uploading a file with the CFFTP command and 
was wondering if someone could provide me some assistance.

I'm able to login without any problem, and to execute a ChangeDir CFFTP 
command without error.  However, when I attempt to upload a file with
the following command:


Where FtpConn is the batched FTP connection I created when I opened the FTP 
command, LOCALFILE is set to the full path name of the file I want to 
upload, and RemoveFile is set to the name of the file I want to create on 
the remote host, I constantly get an error.  The FTP error is 15, and the 
text is "500 BAD PORT COMMAND" or something like that.

Does anyone have any ideas on what might be going wrong here?

Thanks.


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: Help with CFFTP

2000-08-20 Thread Jim McAtee

Try connecting manually to the same server via an FTP client and see how
long it takes to respond if you send it an invalid login.  Could just be
the way the FTP server (mis)behaves.

Jim


-Original Message-
From: Matt Lewis <[EMAIL PROTECTED]>
To: Jim McAtee <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
Date: Sunday, August 20, 2000 5:06 PM
Subject: Re: Help with CFFTP


>Thanks for the help, Jim.  The strange thing is that it works fine if
>everything is valid (the IP, userid, and password are valid
>to get you logged in).  If any of the three are wrong, I see this
strange
>behavior.
>
>I have tried it without the timeout value being defined but saw the
same
>behavior.  I tried putting a RequestTimeout on the call to this page
>to make sure it wasn't the page itself timing out, and that also didn't
work.
>
>I'll try the STOPONERROR change to see if that helps.
>
>Thanks.
>
>At 12:02 AM 08/20/2000 -0600, Jim McAtee wrote:
>>Are you sure you're making the connection?  Does it work when
everything
>>is valid?  If not, the very first thing I'd do is test by using an FTP
>>client and see if you can connect and log in.  Then, I'd hard code the
>>server address, username, password, etc. to see if you can do it from
>>CF.
>>
>>Depending on the speed of other server and the network connection
>>between the servers, your timeout may be too low.  Can't hurt to test
it
>>with a larger value.
>>
>>At least for troubleshooting, try it with STOPONERROR = "No".  Then
test
>>the values CFFTP.Succeeded, CFFTP.ErrorCode, and CFFTP.ErrorText to
see
>>if you can get more detail about the error that's occurring.  You may
>>want to keep this change for your production code as well, and handle
>>error situations in your code.  It's a pain, but can make for a more
>>robust application.
>>
>>Jim
>>
>>
>>-Original Message-
>>From: Matt Lewis <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>>Date: Saturday, August 19, 2000 9:54 PM
>>Subject: Help with CFFTP
>>
>>
>> >When I try using CFFTP to initially connect to an FTP Server but the
>>userid
>> >or password is invalid, all I'm getting is a timeout on the CF page
>> >and no error returned via CFFTP.
>> >
>> >Here's the code I'm using to call CFFTP to attempt the login:
>> >
>> > > > USERNAME="#FORM.FtpUID#"
>> > CONNECTION="FtpConn"
>> > PASSWORD="#FORM.FtpPWD#"
>> > SERVER="#FORM.FtpIP#"
>> > TIMEOUT="10"
>> > STOPONERROR="Yes">
>> >
>> >Any pointers or ideas from folks on things to try?  I've already
tried
>> >wrapping the CFFTP call in a CFTRY/CFCATCH, but to no avail.
>> >
>> >Thanks.

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Help with CFFTP

2000-08-20 Thread Matt Lewis

Thanks for the help, Jim.  The strange thing is that it works fine if 
everything is valid (the IP, userid, and password are valid
to get you logged in).  If any of the three are wrong, I see this strange 
behavior.

I have tried it without the timeout value being defined but saw the same 
behavior.  I tried putting a RequestTimeout on the call to this page
to make sure it wasn't the page itself timing out, and that also didn't work.

I'll try the STOPONERROR change to see if that helps.

Thanks.

At 12:02 AM 08/20/2000 -0600, Jim McAtee wrote:
>Are you sure you're making the connection?  Does it work when everything
>is valid?  If not, the very first thing I'd do is test by using an FTP
>client and see if you can connect and log in.  Then, I'd hard code the
>server address, username, password, etc. to see if you can do it from
>CF.
>
>Depending on the speed of other server and the network connection
>between the servers, your timeout may be too low.  Can't hurt to test it
>with a larger value.
>
>At least for troubleshooting, try it with STOPONERROR = "No".  Then test
>the values CFFTP.Succeeded, CFFTP.ErrorCode, and CFFTP.ErrorText to see
>if you can get more detail about the error that's occurring.  You may
>want to keep this change for your production code as well, and handle
>error situations in your code.  It's a pain, but can make for a more
>robust application.
>
>Jim
>
>
>-Original Message-
>From: Matt Lewis <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Saturday, August 19, 2000 9:54 PM
>Subject: Help with CFFTP
>
>
> >When I try using CFFTP to initially connect to an FTP Server but the
>userid
> >or password is invalid, all I'm getting is a timeout on the CF page
> >and no error returned via CFFTP.
> >
> >Here's the code I'm using to call CFFTP to attempt the login:
> >
> >  > USERNAME="#FORM.FtpUID#"
> > CONNECTION="FtpConn"
> > PASSWORD="#FORM.FtpPWD#"
> > SERVER="#FORM.FtpIP#"
> > TIMEOUT="10"
> > STOPONERROR="Yes">
> >
> >Any pointers or ideas from folks on things to try?  I've already tried
> >wrapping the CFFTP call in a CFTRY/CFCATCH, but to no avail.
> >
> >Thanks.

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Help with CFFTP

2000-08-19 Thread Jim McAtee

Are you sure you're making the connection?  Does it work when everything
is valid?  If not, the very first thing I'd do is test by using an FTP
client and see if you can connect and log in.  Then, I'd hard code the
server address, username, password, etc. to see if you can do it from
CF.

Depending on the speed of other server and the network connection
between the servers, your timeout may be too low.  Can't hurt to test it
with a larger value.

At least for troubleshooting, try it with STOPONERROR = "No".  Then test
the values CFFTP.Succeeded, CFFTP.ErrorCode, and CFFTP.ErrorText to see
if you can get more detail about the error that's occurring.  You may
want to keep this change for your production code as well, and handle
error situations in your code.  It's a pain, but can make for a more
robust application.

Jim


-Original Message-
From: Matt Lewis <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Saturday, August 19, 2000 9:54 PM
Subject: Help with CFFTP


>When I try using CFFTP to initially connect to an FTP Server but the
userid
>or password is invalid, all I'm getting is a timeout on the CF page
>and no error returned via CFFTP.
>
>Here's the code I'm using to call CFFTP to attempt the login:
>
>  USERNAME="#FORM.FtpUID#"
> CONNECTION="FtpConn"
> PASSWORD="#FORM.FtpPWD#"
> SERVER="#FORM.FtpIP#"
> TIMEOUT="10"
> STOPONERROR="Yes">
>
>Any pointers or ideas from folks on things to try?  I've already tried
>wrapping the CFFTP call in a CFTRY/CFCATCH, but to no avail.
>
>Thanks.

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Help with CFFTP

2000-08-19 Thread Frank Priest

Oops. it's getting late:-)

You are looking for CFFTP so the port should be 21 I guess.



>PORT="80"  OR PORT="443" (id SSL)

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Help with CFFTP

2000-08-19 Thread Frank Priest

At 09:55 AM 8/19/2000 -0400, you wrote:
>When I try using CFFTP to initially connect to an FTP Server but the userid
>or password is invalid, all I'm getting is a timeout on the CF page
>and no error returned via CFFTP.


Try with a port number Matt...

PORT="80"  OR PORT="443" (id SSL)



>Here's the code I'm using to call CFFTP to attempt the login:
>
>  USERNAME="#FORM.FtpUID#"
> CONNECTION="FtpConn"
> PASSWORD="#FORM.FtpPWD#"
> SERVER="#FORM.FtpIP#"
> TIMEOUT="10"
> STOPONERROR="Yes">
>
>Any pointers or ideas from folks on things to try?  I've already tried
>wrapping the CFFTP call in a CFTRY/CFCATCH, but to no avail.
>
>Thanks.
>
>--
>Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
>To Unsubscribe visit 
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or 
>send a message to [EMAIL PROTECTED] with 'unsubscribe' in 
>the body.

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Help with CFFTP

2000-08-19 Thread Matt Lewis

When I try using CFFTP to initially connect to an FTP Server but the userid 
or password is invalid, all I'm getting is a timeout on the CF page
and no error returned via CFFTP.

Here's the code I'm using to call CFFTP to attempt the login:



Any pointers or ideas from folks on things to try?  I've already tried 
wrapping the CFFTP call in a CFTRY/CFCATCH, but to no avail.

Thanks.

--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.