cURL / Mailing Lists / curl-users / Single Mail

curl-users

needs help with ftp

From: Steven R. Shourds <srs_at_perfectionsoftware.com>
Date: Tue, 29 Jul 2003 19:34:58 -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

-------------------------------------------------------
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