cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: need help with ftp options

From: Steven Shourds <srs_at_perfectionsoftware.com>
Date: Mon, 11 Aug 2003 14:37:24 -0400

We got it to work! Yeah! Please see the following command if interested.
Thanks to those who helped.

I do have one more question though. I am getting an error message when using
the -P option. I am on Win32 and this script will be installed on more than
this machine. What should I put after the -P so that I do not get an error
message. The command works this way but it would be better to not have an
error message.

curl -Q "USER 8007667530_at_edi.mema.geis.com 15171" -Q "PASS PASSWORD" -T
 "D:\FILES\TECH\CURL\20030802_164602_3M1_.XML" -u mema137:mema137KH -v
 --max-time 90 --connect-timeout 90 --disable-epsv
 "ftp://ftp.translink.geis.com/%%MISGTEST%%*BINARY%%%%b" -P local

* gethostbyname(2) failed for local
* Telling server to connect to 10.1.1.4:4887
> PORT 10,1,1,4,19,23
< 200 Command Okay.
* Ordered connect of the data stream with PORT!

Steve

----- Original Message -----
From: "Roth, Kevin P." <KPRoth_at_MAPLLC.com>
To: <curl-users_at_lists.sourceforge.net>
Sent: Tuesday, August 05, 2003 7:58 AM
Subject: RE: need help with ftp options

> I think you need to place the upload-as filename into the URL.
>
> Something like this:
>
> curl ... -T "D:\...\20030802_164602_3M1_.XML"
> "ftp://ftp.translink.qeis.com/%MISGTEST%%%b"
> ...
>
> You may need to twiddle with the %'s a bit to get them to be
> correct in this situation...
>
> Good luck,
> - Kevin
>
>
>
> -----Original Message-----
> From: Steven Shourds [mailto:srs_at_perfectionsoftware.com]
> Sent: Monday, August 04, 2003 7:55 PM
>
> Can you please give an example: here is my curl command and it gives an
> error.
>
> curl -Q "USER 8007667530_at_edi.mema.geis.com 15171"
> -Q "PASS PASSWORD"
> -T "D:\FILES\TECH\CURL\20030802_164602_3M1_.XML %MISGTEST%%%b"
> -u mema137:mema137KH
> ftp.translink.geis.com
> -v
> --max-time 90
> --connect-timeout 90
> --disable-epsv
>
> curl: Can't open 'D:\FILES\TECH\CURL\20030802_164602_3M1_.XML
> %MISGTEST%%%b'!
>
> The %MISGTEST%%%b stuff are server commands I believe that cause the file
to
> be stored in a particular "mailbox".
>
>
> -------------------------------------------------------
> 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

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