I have a use-case where I need to initialize a CookieJar from net/http with
the cookies defined in a Netscape cookies.txt style file. wget, curl uses
I can read and parse the file, but CookieJar seem to require the URL of the
resource that set the cookie, which is not present in cookies.txt.
1) Would it break the contract with net/http CookieJar to allow nil URLs?
It's not explicitly forbidden in the documentation, but Jar in
net/http/cookiejar does not handle this case.
2) Are there implementations of CookieJar's that supports nil URLs and/or
loading cookies from a cookies.txt file?
3) Would it be possible/desirable to add support for nil-URLs to
Jar#SetCookie implemented in net/http/cookiejar? I could try my best at
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/d/optout.