I can log in with
curl -user username:password https://testrail01.ando.pay1-test.de/index.php?/auth/login/ When i afterwards try to get some projects with
curl https://testrail01.ando.pay1-test.de/index.php?/api/v2/get_projects i have no authentification.
How can i set a cookie?
I tried
curl -user username:password --cookie-jar cookie.txt https://testrail01.ando.pay1-test.de/index.php?/auth/login but get the error: Invoke-WebRequest : Es wurde kein Positionsparameter gefunden, der das Argument "cookie.txt" akzeptiert. In Zeile:1 Zeichen:1 curl -user ... --cookie-jar c ...
thanks