how to post data in ruby ? Plz Help !

  • Thread starter Pradeepta Swain
  • Start date
P

Pradeepta Swain

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 ??
 
I

Ilan Berci

Pradeepta said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top