curl-users
need help with ftp options
Date: Wed, 30 Jul 2003 09:01:06 -0400
I am trying to do the following with cURL. It currently works with Windows FTP but I want to use cURL. It basically logs on to xyz then does another user logon then a put. Is this possible?
ftp -n -s:send.scp
-n
Suppresses the ability to log on automatically when the initial connection is made.
-s:FileName
Specifies a text file that contains ftp commands. These commands run automatically after ftp starts. This parameter allows no spaces. Use this parameter instead of redirection (<).
send.scp contains the following commands
open ftp.xyz.com
user xyzuser
xyzpassword
user "xyz_at_123.com 15171"
PASSWORD
put (local-file-name) %RECEIVER ID%MAP NAME%%b
quit
my current cURL command is:
curl -T (local-file-name) -u xyzuser:xyzpassword ftp://ftp.xyz.com
I try it and get the following message : curl: (13) Odd return code after PASV
I am not even issuing the other user and password so I need to know how to do that then do a put?
Thanks,
Steve
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-07-30