From a Ruby Script, How to automatically login to www.netflix.com

Another option is the CURL library. You could

execute curl commands

in backticks for a quick-and-dirty solution or check

out _why's

explanation of Ruby/DL for a more elegant solution.

He specifically

demonstrates a little example with libcurl.

I didn't have a lot of luck finding Ruby/DL - at least
for windows - when I went looking for it. It seems
quite elusive. Mention is made a while ago of
continuing development on Ruby-DL2 but any related
links are dead. My 2c.

···

On Sat, 30 Oct 2004 00:49:07 +0900, Carl Youngblood wrote:

__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail

Abe Vionas_MailingList wrote:

···

On Sat, 30 Oct 2004 00:49:07 +0900, Carl Youngblood > wrote:

Another option is the CURL library. You could

execute curl commands

in backticks for a quick-and-dirty solution or check

out _why's

explanation of Ruby/DL for a more elegant solution.

He specifically

demonstrates a little example with libcurl.

I didn't have a lot of luck finding Ruby/DL - at least
for windows - when I went looking for it. It seems
quite elusive. Mention is made a while ago of
continuing development on Ruby-DL2 but any related
links are dead. My 2c.

It's actually a part of the Ruby standard library as of 1.8. Thus, you should just be able to 'require "dl"' and have at it.

MAJOR drawback of Ruby/DL, though, is lack of documentation. It can be very discouraging.

- Jamis

--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck.org/jamis

It's built into the current version of ruby, including the Windows
version. You don't need to install it.

One other thing that is great about curl is that it has a trace mode
that allows you to see the HTTP requests and responses to make sure
you are sending things the way you want.

Another very useful tool for this is Mozilla's live HTTP headers extension.

···

On Sat, 30 Oct 2004 01:42:19 +0900, Abe Vionas_MailingList <mailinglist_abe@yahoo.com> wrote:

I didn't have a lot of luck finding Ruby/DL - at least
for windows - when I went looking for it. It seems
quite elusive. Mention is made a while ago of
continuing development on Ruby-DL2 but any related
links are dead. My 2c.

[...]

It's actually a part of the Ruby standard library as of 1.8. Thus, you
should just be able to 'require "dl"' and have at it.

MAJOR drawback of Ruby/DL, though, is lack of documentation. It can be
very discouraging.

You may already know about this, but dl.txt is available:

http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/ext/dl/doc/dl.txt

···

In article <41827453.7070508@email.byu.edu>, Jamis Buck wrote:

Don't forget "open-uri" for the quick/dirty stuff.

···

On Sat, 30 Oct 2004 01:49:42 +0900, Jamis Buck <jgb3@email.byu.edu> wrote:

Abe Vionas_MailingList wrote:

> On Sat, 30 Oct 2004 00:49:07 +0900, Carl Youngblood > > wrote:
>
>> Another option is the CURL library. You could
>
> execute curl commands
>
>> in backticks for a quick-and-dirty solution or check
>
> out _why's
>
>> explanation of Ruby/DL for a more elegant solution.
>
> He specifically
>
>> demonstrates a little example with libcurl.
>
>
> I didn't have a lot of luck finding Ruby/DL - at least
> for windows - when I went looking for it. It seems
> quite elusive. Mention is made a while ago of
> continuing development on Ruby-DL2 but any related
> links are dead. My 2c.

Tim Sutherland wrote:

···

In article <41827453.7070508@email.byu.edu>, Jamis Buck wrote:
[...]

It's actually a part of the Ruby standard library as of 1.8. Thus, you should just be able to 'require "dl"' and have at it.

MAJOR drawback of Ruby/DL, though, is lack of documentation. It can be very discouraging.

You may already know about this, but dl.txt is available:

http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/ext/dl/doc/dl.txt

I admit, I overstated the facts. However, API documentation is only half of the equation. Unfortunately, it is the easiest half, which means the other half--usage examples, FAQ's, best practices, etc.--often fall by the side, while those very items are often the most helpful for people coming to a library for the first time.

- Jamis

--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck.org/jamis