cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Problems with curl run in batch script on WinXP

From: Brian Dessent <brian_at_dessent.net>
Date: Mon, 24 Jul 2006 13:01:08 -0700

"Junkmail_at_srjava.cjb.net" wrote:

> curl -o C:\temp\ebay\curlsignin2.htm -L -b C:\temp\ebay\curlcookies.txt
> -c C:\temp\ebay\curlcookies.txt -e
> https://signin.ebay.com/aw-cgi/eBayISAPI.dll?SignIn -A "Mozilla/5.0
> (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1
> (ax)" -d "userid=EBAY_ID&pass=EBAY_PASS"
> "https://signin.ebay.com/aw-cgi/eBayISAPI.dll?MfcISAPICommand=SignInWelcome&siteid=0&co_partnerId=2&UsingSSL=0&ru=http%3A%2F%2Fcgi3.ebay.com%2Faw-cgi%2FeBayISAPI.dll%3FAdultLoginShow%26amp%3Bt%3D1%26amp%3Bpass%3D%7B_pass_%7D%26amp%3Buserid%3D&pp=pass&pa1=&pa2=&pa3=&i1=0&pageType=94"
>
> curl -o C:\temp\ebay\curlsignin3.htm -L -b C:\temp\ebay\curlcookies.txt
> -c C:\temp\ebay\curlcookies.txt -e
> https://signin.ebay.com/aw-cgi/eBayISAPI.dll?SignIn -A "Mozilla/5.0
> (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1
> (ax)"

'%' is a metacharacter in windows batch files. It is used for parameter
substitution, e.g. %1. If you want a literal '%' you need to use '%%'
in the command.

Brian
Received on 2006-07-24