Learn R Programming

curlconverter (version 1.0.0)

parse_query: Split a query string into component parts

Description

While straighten will returns parsed GET query string parameters there are times (i.e. in HTML <form> processing) when the body of the request contains a URL encoded query string as well.

Usage

parse_query(query)

Arguments

query

query string to decode

Details

This function will take any query string and return a named list of the paremters. Both the names and values will be URL decoded.

References

Query Strings

Examples

Run this code
# NOT RUN {
parse_query("a=1&b=test")
# }

Run the code above in your browser using DataLab