Forum: Ruby How to send a http::get or http::post with a cookie?

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.
1685f91cc5853eb465ca50aa68b91421?d=identicon&s=25 mrpink (Guest)
on 2007-04-21 15:46
(Received via mailing list)
Hi,
a simple question :) What options do I have to get a cookie from a
website and then sending http:get or post with this cookie?

greets
Be30361bb0b0c495e3077db43ad84b56?d=identicon&s=25 Aaron Patterson (Guest)
on 2007-04-22 02:42
(Received via mailing list)
On Sat, Apr 21, 2007 at 10:45:08PM +0900, mrpink wrote:
> Hi,
> a simple question :) What options do I have to get a cookie from a
> website and then sending http:get or post with this cookie?

Mechanize will let you make an http request and will automatically save
your cookies and send them on subsequent requests.

  http://mechanize.rubyforge.org/
1685f91cc5853eb465ca50aa68b91421?d=identicon&s=25 mrpink (Guest)
on 2007-04-22 10:00
(Received via mailing list)
Aaron Patterson wrote:
> On Sat, Apr 21, 2007 at 10:45:08PM +0900, mrpink wrote:
>> Hi,
>> a simple question :) What options do I have to get a cookie from a
>> website and then sending http:get or post with this cookie?
>
> Mechanize will let you make an http request and will automatically save
> your cookies and send them on subsequent requests.
>
>   http://mechanize.rubyforge.org/
>
thanks that looks great but is there any doc or good examples for
mechanize?
This topic is locked and can not be replied to.