[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

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

Abe Vionas_MailingList

10/29/2004 4:42:00 PM

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.




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


5 Answers

Jamis Buck

10/29/2004 4:50:00 PM

0

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...


Carl Youngblood

10/29/2004 4:53:00 PM

0

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.


timsuth

10/30/2004 3:38:00 AM

0

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/...

Jamis Buck

10/30/2004 3:54:00 AM

0

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/...

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...


Michael Campbell

11/5/2004 2:32:00 PM

0

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.


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