$_SERVER['QUERY_STRING']

H

Hj Ka

In PHP, you can easily access the raw query string with
$_SERVER['QUERY_STRING']

Is there an easy way of doing this in Ruby?
 
M

Matías Palomec

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://programado.org/
Let one walk alone, commit no sin, with few wishes,
like an elephant in the forest
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top