parse_query: Parse query string

View source: R/parse_query.R

parse_queryR Documentation

Parse query string

Description

Parse http parameters from a query string. This includes unescaping of url-encoded values.

Usage

parse_query(query)

Arguments

query

a url-encoded query string

Details

For http GET requests, the query string is specified in the URL after the question mark. For http POST or PUT requests, the query string can be used in the request body when the Content-Type header is set to application/x-www-form-urlencoded.

Examples

q <- "foo=1%2B1%3D2&bar=yin%26yang"
parse_query(q)

webutils documentation built on Oct. 4, 2024, 9:06 a.m.