Re: [racket] Client-side cookies

2014-01-26 Thread Duncan Bayne
On Thu, Jan 9, 2014, at 05:08 PM, Roman Klochkov wrote: > I'm making fully RFC6265 compliant cookie support for net/url and http. > https://github.com/Kalimehtar/client-cookies > > It is still pre-alpha, but, I hope, will be ready in 2-3 weeks. Roman, thanks - I've taken a look but I'm afraid

Re: [racket] Client-side cookies

2014-01-12 Thread Roman Klochkov
Beta version is ready. No docs yet. Simply look into main.rkt -- there are examples of usage and drop-in replacements for pure-port. TODO: IDNA for canonical names (RFC 5890) and support for  http://publicsuffix.org/list/ Question to all: how to provide extensibility for module? One may wan

Re: [racket] Client-side cookies

2014-01-11 Thread Duncan Bayne
On Thu, Jan 9, 2014, at 05:08 PM, Roman Klochkov wrote: > I'm making fully RFC6265 compliant cookie support for net/url and http. > https://github.com/Kalimehtar/client-cookies > > It is still pre-alpha, but, I hope, will be ready in 2-3 weeks. That looks really exciting. I'm busy re-writing

Re: [racket] Client-side cookies

2014-01-11 Thread Evan Donahue
Out of curiosity, are there any extant plans or efforts beyond Jay's work on http-client aimed at net/ related functionality? Just wondering, Evan On Thu, Jan 9, 2014 at 5:08 PM, Roman Klochkov wrote: > I'm making fully RFC6265 compliant cookie support for net/url and http. > https://github.c

Re: [racket] Client-side cookies

2014-01-09 Thread Roman Klochkov
I'm making fully RFC6265 compliant cookie support for net/url and http. https://github.com/Kalimehtar/client-cookies It is still pre-alpha, but, I hope, will be ready in 2-3 weeks. Среда, 8 января 2014, 10:33 -07:00 от Matthew Flatt : >In case no one offers a better library, enclosed is a sm

Re: [racket] Client-side cookies

2014-01-08 Thread Evan Donahue
I don't know the specifics of your task, but I have been working on a sort of soup to nuts web crawling system. The system itself allows for pretty concise specification of most types of web crawling that I've encountered, and depending on what you need it contains a functional http-browser that ma

Re: [racket] Client-side cookies

2014-01-08 Thread Matthew Flatt
In case no one offers a better library, enclosed is a small one that I recently created for a web-scraping task. Start a simulation of a browser with `make-connection`, use `goto!` to follow a link to a relative URL (following redirects), and use `back!` to go back. The `goto!` function returns tw

[racket] Client-side cookies

2014-01-08 Thread Duncan Bayne
Hi All, I'm trying to re-write some Common Lisp web-scraping code in Racket. In Common Lisp, I'm POSTing a login request, and storing the cookie-jar for subsequent GETs: (defun login (username password) "Logs in to www.example.com. Returns a cookie-jar containing authentication details."