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 PHP, you can easily access the raw query string with
$_SERVER[‘QUERY_STRING’]
Is there an easy way of doing this in Ruby?
On Fri, Jul 18, 2008 at 7:15 PM, Hj Ka [email protected] 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”
Is not tidy, but useful.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs