Na sintaxe “batch” (MS DOS)
curl "http://mysite.com/login" ^
--data-urlencode "rememberMe=true" ^
--data-urlencode "email=aturing@foobar.com" ^
--data-urlencode "password=secretpassword" ^
--cookie "cookies.txt" ^
--cookie-jar "cookies.txt" ^
--location ^
--verbose ^
> "login_log.html"
curl "http://mysite.com/admin" ^
--cookie "cookies.txt" ^
--cookie-jar "cookies.txt" ^
--head