Forum: Ruby How to download cookies in ruby?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
chutsu (Guest)
on 2009-04-04 20:53
(Received via mailing list)
Hi
So I was trying to figure out how to download cookies in ruby, I know
how to use wget to do that:

wget \
    --save-cookies ~/.cookies/rapidshare \
    --post-data "login=USERNAME&password=PASSWORD" \
    -O - \
    https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi \
    > /dev/null

But I would like to know ruby's equivalent, Thanks
Chris
Phlip (Guest)
on 2009-04-04 21:37
(Received via mailing list)
chutsu wrote:
>
> But I would like to know ruby's equivalent, Thanks

Add watir, mechanize, webrat, or just "net::http" to your El Goog search
terms!

Functional tests on HTTP, including cookies, is a well-explored area
around here...
This topic is locked and can not be replied to.