CURL to get/set cookies
Benjamin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Apr 5 16:55:13 PDT 2015
I"m still not able to set the cookie. Would it be possible to
provide a few sample lines - to ensure I'm on the right path. I
appreciate any additional help!!
Thanks! Benjamin
On Wednesday, 1 April 2015 at 14:33:55 UTC, Adam D. Ruppe wrote:
> There's two ways, you can let curl handle it by setting a
> cookie jar file:
>
> http://dlang.org/phobos/std_net_curl.html#setCookieJar
>
> Make the HTTP object and set the jar on it before doing any
> requests. Then it will be done automatically on that object,
> saving to the file.
>
> If you are manually reading the Set-Cookie header, you can also
> just use this method:
>
> http://dlang.org/phobos/std_net_curl.html#setCookie
More information about the Digitalmars-d-learn
mailing list