cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: need help with ftp options

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 3 Aug 2003 00:17:27 +0200 (CEST)

On Fri, 1 Aug 2003, Steven R. Shourds wrote:

> I called up the company and they seem to think the PWD is getting in the way
> anyway when doing it with cURL so it may be of some use to be able to move
> that around in the future.

Here are the results from the Swedish jury:

I have good news and bad news.

The good news is that the PWD is not a problem at all (at least not for a
single-shot operation like this). The problem was simply that you used an
extra set of quuotes wronly. I just managed to upload a very small test file
using your posted test account. (See below for the full output.)

The bad news is that curl is still not perfectly happy about the return codes
from the server, since it seems to be getting them out of synch or something
(check the server response after the STOR command, it is obviously wrong) and
curl eventually exited with an error message even if I believe that the upload
itself succeeded.

Full verbose trace:

$ curl -Q "USER 8007667530_at_edi.mema.geis.com 15171" -Q "PASS PASSWORD" -u
mema137:mema137KH ftp.translink.geis.com/ -v -T /tmp/testfile
* About to connect() to ftp.translink.geis.com:21
* Connected to 204.90.130.189 (204.90.130.189) port 21
< 220-
< ********************************* WARNING *****************************
< This system is for use by authorized users only.
< ***********************************************************************
< All activities on this system are recorded and may be monitored for the
< purpose of tracking down intruders. In the course of monitoring individuals
< improperly using this system or during system maintenance, the activities of
< authorized users may also be monitored.
<
< Anyone using this system expressly consents to such monitoring and is
advised
< that if such monitoring reveals possible evidence of criminal activity,
< system personnel may provide the evidence of such monitoring to law
< enforcement officials.
<
< GE Global Exchange Services, Inc. 100 Edison Park Drive, Gaithersburg, MD
20878 ***********************************************************************
< 220 Proxy first requires authentication
> USER mema137
< 331 Enter authentication password for mema137
> PASS mema137KH
< 230 User authenticated to proxy
* We have successfully logged in
> PWD
< 500 must be connected to remote server
> USER 8007667530_at_edi.mema.geis.com 15171
< 331-(----GATEWAY CONNECTED TO edi.mema.geis.com----)
< 331-(220 Enterprise FTP server (Version 7.0 2000 February) ready.)
< 331 User name okay, need password.
> PASS PASSWORD
< 230-User logged in, proceed.
< Current Default Relationship - Recv: 8007667530 APRF: *BINARY
< Get option: single
< 230
> EPSV
< 500 command not understood
> PASV
< 227 Entering Passive Mode (204,90,130,189,237,219)
* About to connect() to ftp.translink.geis.com:60891
* Connecting to 204.90.130.189 (204.90.130.189) port 60891
* Connected the data stream with PASV!
> TYPE I
< 200 Command Okay.
> STOR testfile
< 200 TYPE set to I
  % Total % Received % Xferd Average Speed Time Curr.
                                 Dload Upload Total Current Left Speed
100 9 0 0 100 9 0 2 0:00:03 0:00:03 0:00:00
2< 150 Opening data connection for transfer.
* server did not report OK, got 150
100 9 0 0 100 9 0 2 0:00:03 0:00:03 0:00:00 0
* Connection #0 left intact
curl: (20) server did not report OK, got 150
* Closing connection #0

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
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-08-03