curl-users
Re: Problem with curl fetches in a batch file
Date: Mon, 22 Feb 2010 14:06:37 +0100
Hallo, I found the mistake.
When you want to use a % in a command within a batch file, you have to
use %%.
curl "http://fritz.box/cgi-bin/webcm" -d
"sid=%SID%&connection0%3Asettings%2Fcmd_disconnect="
becomes
curl "http://fritz.box/cgi-bin/webcm" -d
"sid=%SID%&connection0%%3Asettings*%%*2Fcmd_disconnect="
in a batchfile.
On 20.02.2010 20:42, Daniel Stenberg wrote:
> On Sat, 20 Feb 2010, Jan Schmidtbauer wrote:
>
>> rem curl "http://fritz.box/cgi-bin/webcm" -d
>> "sid=%SID%&connection0%3Asettings%2Fcmd_disconnect="
>
> Surely you need to escape those single-percent letters?
>
-------------------------------------------------------------------
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 2010-02-22