using Ruby 1.9.3
Windows 7
accoding to the docs:
http://ruby-doc.org/stdlib-1.9.3/libdoc/net/http/rdoc/Net/HTTP.html
The following should be fine... however..

[code]
  require 'net/http'

  url = URI.parse("www.myservice.com/resource/path")
  params={"param1","myParam"}
  url.query = URI.set_form_data(params)

  ... make some request...
[/code]

I get the error message:
undefined method `set_form_data' for URI:Module
Also, FWIW, I get the same undefined method for: encode_www_form(params)
as well.

Anybody ever see this? If so was there a workaround?
Have not tried on *nix.

Thanks in advance,
Mike

-- 
Posted via http://www.ruby-forum.com/.