curl-users
Re: Windows 7 Curl -K reading command lines from a file
Date: Thu, 5 Aug 2010 17:46:47 -0400
Eureka! That was the problem..... Thank you so much! Case Closed.
What manual are you using? the one at http://curl.haxx.se/docs/manual.html
does not have those instructions.
On Aug 5, 2010, at 3:37 PM, Kees Nijssen wrote:
> 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&sheet=od6
>> <http://spreadsheets.google.com/tq?tqx=out:csv&key=0Auawp6xt4oMIdGdzR2JTMDl0SWFmdEtYUmVBc21zZWc&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
_______________
What's Next?
-------------------------------------------------------------------
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