Forum Bugs

Cookie support / --cookie parameter

John
hi,

in Prince 13.1 I can't get the "--cookie" command line parameter to work. The same parameters work fine with curl, with Prince I get redirected. I understand Prince uses curl?

Can anybody confirm this?

Greetings,
John

PS.: Cookie-jar works though.
mikeday
Yes --cookie should work, for example:
--cookie="name2=value2; domain=127.0.0.1; path=/subdir"
John
Hello Mike,

hmm, weird. We couldn't make it work (different credentials, different ways of passing the cookies), as it used to. But as I said, cookie-jar is working for us, so we can work around this.

Thanks for your help.

Greetings,
John
hallvord
Hi John, I just tested this:

prince --cookie="name=testme; domain=manytools.org" https://manytools.org/http-html-text/http-request-headers/ -o headers.pdf


and I see the expected Cookie header listed in the output. I'd like to help the Prince devs (or you) figure out why things didn't work for you. If you use the same --cookie argument for that URL, does any cookie show up? Could you post more details here (just censor out any session tokens or similar sensitive details)?

Announcement: repos for tests/utils