-
Notifications
You must be signed in to change notification settings - Fork 42
Description
How can I add custom names to cookies?
L.cookie_name
and all other constructors from
https://hackage.haskell.org/package/http-client-0.5.1/docs/Network-HTTP-Client.html
data Cookie
are OK, but my original cookie has
"storeId": "firefox-default"
"firstPartyDomain": ""
Truly speaking, everything works with HTTP-Client cookies only, but, as we are in Haskell domain, "it's not pure enough" (pun intended).
Mark, thanks a lot for your library, it's my second attempt to use it as a test site for my humble Haskell skills. But not everything is terrible with them only. It took maybe 5 hours of tinkering to create a working snippet of simple task "log into cite having cookies from FF". In any other language (even F#) I could do this from scratch (with zero previous knowledge) maybe for 20 minutes just copy-pasting from Stackoverflow.
I might be searching in wrong places, but it seems there is no single example of using cookies. Now I have one of my own, if you are still interested in this project, I may give it to you, you may add it to docs (after honing my terrible childish Haskell style).