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

Reply via email to