Programming Tutorials

  • Home
  • Java
  • JavaScript
  • Android
  • C
  • C++
  • Python
  • ASP.net
  • PHP
  • Perl
  • Trends

parse(query) in Ruby

By: Jeeva Printer Friendly Format    

parse(query)

Parse an HTTP query string into a hash of key=>value pairs.

  params = CGI::parse("query_string")
    # {"name1" => ["value1", "value2", ...],
    #  "name2" => ["value1", "value2", ...], ... }




Most Viewed Articles (in Ruby )

Reading URL content using Ruby (HTTP)

URL decode a string in Ruby

Benchmark module in Ruby

URL encode a string in Ruby

parse(query) in Ruby

header() in Ruby

Security in dRuby

POST a form in Ruby

Using Observer in Ruby

Getting started with Ruby on rails

Prompts, Command Lines, Prompts, and irb in Ruby on rails

Naming conventions in Ruby on rails

Command-line Arguments in Ruby on rails

Methods in Ruby on rails

if . . . elsif . . . else in Ruby on rails

Latest Articles (in Ruby)

Standard Library Packages in Ruby

Module Abbrev in Ruby

encoding and decoding in Ruby using Base64 Module

Benchmark module in Ruby

benchmark(caption = "", label_width = nil, fmtstr = nil, *labels) {|report| ...} in Ruby

bm(label_width = 0, *labels) {|report| ...} in Ruby

bmbm(width = 0) {|job| ...} in Ruby

CGI class in Ruby

URL encode a string in Ruby

escapeElement() in Ruby

escapeHTML() in Ruby

new(type = "query") in Ruby

parse(query) in Ruby

pretty() in Ruby

Format a Time object as a String in Ruby

Comment on this tutorial

    categories

  • Data Science
  • Android
  • AJAX
  • ASP.net
  • C
  • C++
  • C#
  • Cocoa
  • Cloud Computing
  • HTML5
  • Java
  • Javascript
  • JSF
  • JSP
  • J2ME
  • Java Beans
  • EJB
  • JDBC
  • Linux
  • Mac OS X
  • iPhone
  • MySQL
  • Office 365
  • Perl
  • PHP
  • Python
  • Ruby
  • VB.net
  • Hibernate
  • Struts
  • SAP
  • Trends
  • Tech Reviews
  • WebServices
  • XML
  • Certification
  • Interview

Subscribe to Tutorials

Related Tutorials

Standard Library Packages in Ruby

Module Abbrev in Ruby

encoding and decoding in Ruby using Base64 Module

Benchmark module in Ruby

benchmark(caption = "", label_width = nil, fmtstr = nil, *labels) {|report| ...} in Ruby

bm(label_width = 0, *labels) {|report| ...} in Ruby

bmbm(width = 0) {|job| ...} in Ruby

CGI class in Ruby

URL encode a string in Ruby

escapeElement() in Ruby

escapeHTML() in Ruby

new(type = "query") in Ruby

parse(query) in Ruby

pretty() in Ruby

Format a Time object as a String in Ruby

Archived Comments

© 2019 Java-samples.com

Tutorial Archive: Data Science  Android  AJAX  ASP.net  C  C++  C#  Cocoa  Cloud Computing  EJB  Java  Certification  Interview  iPhone  Javascript  JSF  JSP  Java Beans  J2ME  JDBC  Linux  Mac OS X  MySQL  Perl  PHP  Python  Ruby  SAP  VB.net  EJB  Struts  Trends  WebServices  XML  Office 365  Hibernate

Latest Tutorials on: Data Science  Android  AJAX  ASP.net  C  Cocoa  C++  C#  EJB  Java  Certification  Interview  iPhone  Javascript  JSF  JSP  Java Beans  J2ME  JDBC  Linux  Mac OS X  MySQL  Perl  PHP  Python  Ruby  SAP  VB.net  EJB  Struts  Cloud Computing  WebServices  XML  Office 365  Hibernate