From: Ilan Berci Date: 2008-03-07T12:05:45+09:00 Subject: Re: how to post data in ruby ? Plz Help ! Pradeepta Swain wrote: > Hi , > > I am trying to send a json object through ruby whose equivalent > code in java script is req.send(jsonobject) , also i want to add headers > to the request . I am using the code request.add_field("Cookie","12345") > > How can i send jsonobject using the same request object ?? check out the gem mechanize http://mechanize.rubyforge.org/mechanize/ hth ilan -- Posted via http://www.ruby-forum.com/.