Hello
I've a client which send this request to a mongrel HTTPHandler :

res=Net::HTTP.post_form(URI.parse('http://localhost:3000/test'),{"a"=>1,"b"=>2})

But in the handler I can't read the parameters one by one, I can read
the entire String only :
class Serveur
  class MyHandler < Mongrel::HttpHandler
    def process(req, resp)
              ...
           @params=req.params
           @params.http_body
              ...
   end
 end
...
end


@params.http_body give me :
a=1&b=2 which is a string

I would like a code which return me 1 for something[:a] and 2 for
something[:b]...
thanks
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Mongrel-users mailing list
Mongrel-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-users

Reply via email to