Page 1 of 1

CL equivalent of Ruby Mechanize?

Posted: Mon Jul 28, 2008 12:49 pm
by findinglisp
Does anybody know of a CL equivalent of Ruby's Mechanize library (http://mechanize.rubyforge.org/mechanize/). It's designed to provide a nice way to interact easily with web sites over HTTP. Note that it's far more than a simple HTTP client and correctly handles cookies, authentication, redirects, etc.

Re: CL equivalent of Ruby Mechanize?

Posted: Mon Jul 28, 2008 2:44 pm
by TheGZeus
http://www.cliki.net/lisp-cgi-utils
This look useful?
I'm sure you could extend it, maybe work with cl-who code... but that's more for generation as I recall...

Re: CL equivalent of Ruby Mechanize?

Posted: Mon Jul 28, 2008 3:40 pm
by findinglisp
TheGZeus wrote:http://www.cliki.net/lisp-cgi-utils
This look useful?
I'm sure you could extend it, maybe work with cl-who code... but that's more for generation as I recall...
I think that's the server-side stuff. I want the client side. Essentially, I'm looking for a CL library equivalent of wget or curl.

Re: CL equivalent of Ruby Mechanize?

Posted: Mon Jul 28, 2008 3:59 pm
by smithzv
Well, I am completely unfamiliar with mechanize, but your comment about an http client that stores cookies and what not sounds a bit like Drakma. And Drakma is kind of like the utility curl, for which there are cffi bindings available.

Maybe this is the right track?

Zach

Re: CL equivalent of Ruby Mechanize?

Posted: Mon Jul 28, 2008 7:34 pm
by findinglisp
smithzv wrote:Well, I am completely unfamiliar with mechanize, but your comment about an http client that stores cookies and what not sounds a bit like Drakma. And Drakma is kind of like the utility curl, for which there are cffi bindings available.

Maybe this is the right track?

Zach
I'll check out Drakma. I knew of it, but I had thought previously that it was a bit more simplistic than what I was looking for. In other words, there's a big difference between something that is capable of performing a simple HTTP transaction and something that starts to act more like a complete browser without the UI. I had previously filed Drakma into the category of just being a simple client, but I might be wrong. Edi usually produces great libraries, so I'll go check it out.

Re: CL equivalent of Ruby Mechanize?

Posted: Mon Jul 28, 2008 8:05 pm
by findinglisp
Yea, that looks like it will work. I should have known that Edi would only put out something full-featured. Don't know what I was thinking.