Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
$_SERVER['QUERY_STRING']
Hj Ka
7/18/2008 10:15:00 PM
In PHP, you can easily access the raw query string with
$_SERVER['QUERY_STRING']
Is there an easy way of doing this in Ruby?
--
Posted via
http://www.ruby-...
.
1 Answer
Matías Palomec
7/18/2008 10:46:00 PM
0
On Fri, Jul 18, 2008 at 7:15 PM, Hj Ka <hajejan@kamps.org> wrote:
> In PHP, you can easily access the raw query string with
> $_SERVER['QUERY_STRING']
>
> Is there an easy way of doing this in Ruby?
In a CGI environment you could use:
ENV{'QUERY_STRING'}
Or test other vars with the cgi:
-----------------------------------
#!/usr/bin/ruby
print "Content-Type: text/plain\n\n"
p ENV
-----------------------------------------
Is not tidy, but useful.
--=20
Atentamente, yo <Mat=EDas>
Y sin fumar desde (casi) el '1089515700'
http://progr...
Let one walk alone, commit no sin, with few wishes,
like an elephant in the forest
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
$_SERVER['QUERY_STRING']
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