curl-users
Re: Problem with Windows environment variables in config file !
Date: Fri, 24 Jun 2011 18:46:05 +0200
Hello Troll,
a late answer, but perhaps still helpful:
How about creating the config file by a shell script / batch file on the fly (example not tried, just as idea) ?
echo -u username:password > configfile.txt
echo -T "%APPDATA%\\file.rar" >> configfile.txt
echo --url ftp://myhost.com/directory/ >> configfile.txt
curl -K configfile.txt
Then you can write into configfile.txt everything the shell / DOS offers, not depending on build in functionality of curl...
Best regards,
Martin
----- Original Message -----
From: Troll Rmdn
To: the curl tool
Sent: Monday, June 20, 2011 1:31 AM
Subject: Re : Problem with Windows environment variables in config file !
> You up to working on this for Windows?
I would like to do it but I'm not a programmer, I'm an end-user who searches for a tiny command-line ftp tool that accepts file_to_upload parameter from a config file and recognizes win envir vars in it !!
------------------------------------------------------------------------------
De : Daniel Stenberg <daniel_at_haxx.se>
À : the curl tool <curl-users_at_cool.haxx.se>
Envoyé le : Dim 19 juin 2011, 21h 45min 24s
Objet : Re: Problem with Windows environment variables in config file !
On Sun, 19 Jun 2011, Troll Rmdn wrote:
> curl seems not to be able to recognize Windows environment variables in config file.
Oh right, that's correct. curl makes not attempts of converting such a thing.
> How to use Windows environment variables in config file ?
There's currently no way to make it do so. It also doesn't recognize other system's environment variables...
I guess we should consider adding this. You up to working on this for Windows?
--
/ daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
------------------------------------------------------------------------------
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-06-24