From: John Ydil Date: 2010-03-04T23:28:04+09:00 Subject: Re: Url parsing in ruby Robert Klemme wrote: > 2010/3/4 John Ydil : >>> >>> And how do you interface with the web server?  If you are using Cgi you >>> can use >>> http://www.ruby-doc.org/stdlib/libdoc/cgi/rdoc/index.html > >> I think this lib is for generate html, I didn't see method to get the >> URL > > This is not true. Please read the documentation I referred you to. > >> How it works : >> I told my web server (apache) to use ruby (.rbx extension) > > Barring any other information I have to assume that this is the CGI > interface. > >> HOST = '192.168.0.121' >> >> Maybe I don't have the good way of doing this but at least, it works, my >> web pages are displayed. > > Class CGI helps with creating valid HTML as well so I suggest you use > it. It's just the proper tool for the job. > > Kind regards > > robert I did it ! require "cgi" cgi_request = CGI::new("html4") puts "Content-Type: text/html; charset=UTF-8" puts itf = cgi_request['itf_name'] puts itf Thanks for your help Regards John -- Posted via http://www.ruby-forum.com/.