crul icon indicating copy to clipboard operation
crul copied to clipboard

cookie jar for crul?

Open sckott opened this issue 8 years ago • 6 comments

https://github.com/miyagawa/faraday-cookie_jar

sckott avatar Jan 19 '18 18:01 sckott

Hi @sckott

I hope all is good and thanks again for crul it's my go to for interfacing API. I wanted to know if there's a way to use cookie-jar with crul (even if it's not direct i.e using curl).

Thanks again, Ahmadou

dickoa avatar Feb 25 '21 21:02 dickoa

Thanks for the ping and thanks for using crul

A better model than the link above is probably python's requests - for reference for discussion

https://requests.readthedocs.io/en/latest/user/quickstart/#cookies https://requests.readthedocs.io/en/master/_modules/requests/cookies/

Have you seen this crul help page? https://docs.ropensci.org/crul/reference/cookies.html There's minimal support for cookies, basically you have to set cookies manually, very little user interface on top to make it easier.

Might try something like what requests has

sckott avatar Feb 25 '21 22:02 sckott

Work on branch cookie-jar - It looks somewhat complicated, so may not get around to this. Will be faster if someone wants to tackle this

sckott avatar Feb 26 '21 02:02 sckott

Oh wow that's really great, I will play around, test and will come back to you (hopefully with code if needed). Thanks a lot

dickoa avatar Feb 26 '21 08:02 dickoa

To be clear, its not useable yet.

sckott avatar Feb 26 '21 16:02 sckott

Thanks a lot for starting working on this, I will try to play with it already there and see if I can report back on how to make it more usable.

dickoa avatar Feb 27 '21 10:02 dickoa