Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
newbie: cgi,read URI
Robby Jansch
11/14/2003 11:46:00 AM
Hello Newsgroup,
i´m a newbie and work on a ruby 1.8, an apache 1.3, modruby and eruby and
use it in the cgi-version
i just want to get the requested URL
i tried
puts cgi.request_uri()
but unfortunatly nothing happens.
for example:
if there is the URL
http://test.test.de/test....
i just need as a string test.rbx?test=1
if there is a faq for such things, so please quote the link, i haven´t found
it here in the newsgroup
so much thanks
Robby
1 Answer
ts
11/14/2003 12:33:00 PM
0
>>>>> "R" == Robby Jansch <r.jansch@vva.de> writes:
R> if there is the URL
http://test.test.de/test....
R> i just need as a string test.rbx?test=1
ENV["REQUEST_URI"] will give you /test.rbx?test=1
--
Guy Decoux
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
newbie: cgi,read URI
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password