cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Windows 7 Curl -K reading command lines from a file

From: Kees Nijssen <kees.nijssen_at_quicknet.nl>
Date: Thu, 05 Aug 2010 21:37:03 +0200

  On Aug 4th 2010 Jay Whipple III wrote:
> curl -q -k -K c:\Users\Jay3\Documents\curl.cmd -o
> c:\Users\Jay3\Documents\curl.tmp
> "http://spreadsheets.google.com/tq?tqx=out:csv&key=0Auawp6xt4oMIdGdzR2JTMDl0SWFmdEtYUmVBc21zZWc&amp;sheet=od6
> <http://spreadsheets.google.com/tq?tqx=out:csv&key=0Auawp6xt4oMIdGdzR2JTMDl0SWFmdEtYUmVBc21zZWc&amp;sheet=od6>"
>
>
>
> where the file curl.cmd is:
>
> --silent --header "Authorization: GoogleLogin
> auth=DQAAAJkAAAAE6mr-hUlLya742RxdomXOhH6q6Xic-WtNryBx4c6y1DMYgOgH0TlxnyfK63WmxwNq-XwSVWD1raeClqkvrhoe7KUiJc--T8vbfXFEXP63FXvbaZ4xgjbjq5eTU77uKhDUnbjiNhcvGK1qUNe7QtLEBAEWO0fcCbhMjZ9hLZZIorXyre5Ay95AIqryEWYb3ug685ZiYhknBl0grQywKvy6"
>
>
> results in:
> "Error: Access Denied"
>
> If I pass the curl.cmd commands through on the original line I have no
> problem...
>
>
>
> What am I doing wrong with the use of -K command?
>
Would it help to put the "--silent" and the "--header" options on two
separate lines in the config file? It looks like you have both options
on the same line. The cURL man page states "Only write one option per
physical line in the config file."

Kees

-------------------------------------------------------------------
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-08-05