Re: CURL to get/set cookies

2015-04-16 Thread Benjamin via Digitalmars-d-learn
Vladimir Adam Thank you! This was my last roadblock I needed to overcome to finish my prototype project for the company I work for. After a successful presentation and demo - the company I work for is taking a serious look into the D language for future projects. Thanks! Ben. On

Re: CURL to get/set cookies

2015-04-05 Thread Benjamin via Digitalmars-d-learn
Im 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

Re: CURL to get/set cookies

2015-04-05 Thread Vladimir Panteleev via Digitalmars-d-learn
On Sunday, 5 April 2015 at 23:55:15 UTC, Benjamin wrote: Im 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 This should work: auto cookiesFile = cookies.txt; auto

CURL to get/set cookies

2015-04-01 Thread Benjamin via Digitalmars-d-learn
Hello! I’m having issues with setting a cookie via CURL(std.net.curl). I’ve tried several time over the last week but can’t figure it out. I feel like I've tried every suggestion I found searching the web. Basically - I receive the value set-cookie from a GET request (got this), but have

Re: CURL to get/set cookies

2015-04-01 Thread Adam D. Ruppe via Digitalmars-d-learn
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