Hi,
Whith NET::HTTP.post_form how can I generate the next request?
POST /script.php?op=publish HTTP/1.1
...
...
ch=0&cnt=something
-----------------
When I use:
res =
Net::HTTP.post_form(URI.parse('http://www.xxx.com/script.php?op=publish'),
{"ch" => 0, "cnt" => "something"})
http://www.xxx.com/script.php?op=publish
ch0cntsomething
There are no = and & so I think that fails on the php script...
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---