From: GOTOU Yuuzou Date: 2003-08-23T04:48:29+09:00 Subject: Re: Getting html page fields with webrick Hi, In message , `JK ' wrote: > I am playing with Webrick and I tried to change a little the example given > with the packet but when I fill a html form and send it the fields values > are empty (using GET method, Webrick doesn't accept POST method). How to > fix it? HTTPRequest#query returns a Hash of parsed query. def do_GET(req, res) q = req.query fname = q['fname'] email = q['email'] st = "Hello #{fname} -- #{email} " res['Content-Type'] = "text/html" res.body = st end In addition, do_POST should be defined for POST request. -- gotoyuzo