curl-users
Re: curl for ftp sites with double login
Date: Mon, 31 Jul 2000 08:39:10 +0200 (MET DST)
On Mon, 31 Jul 2000, Bogdan Dobrin wrote:
> How can I get curl to upload a file to an ftp site which requires a
> double login scheme (first as anonymous then "user my_user_name" then
> my_password given at requested prompt) ?
Hm. In fact I don't think that is possible.
You could try to do something like:
curl -Q "USER my_user_name" -Q "PASS my_password" -T uploadfile -u
anonymous:my_email_addr ftp://ftp.upload.com/
... although I'm not sure that curl will behave exactly as wanted here,
because that USER line probably returns a 331-code and when the QUOTE
commands are sent, curl expects 2*-codes or will return an error...
Of course I would like to make this possible and I am very eager to hear what
suggestions you or anyone else might have how to solve this nicely with the
existing or new command line options!
-- Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77 ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`olReceived on 2000-07-31