HTTP::GETQUERY 1g 2023-11-14 laplante@plcb.ca GOWEB/HTTP


author: laplante@plcb.ca date: 2023-11-14 title: “HTTP::GETQUERY Function” version: 1.0.0 section: 1g

category: GOWEB/HTTP

Name

http::getquery — Retrieve #query string parameters

Synopsis

http::getquery([error: err])

Description

The http::getquery function retrieves query string parameters from the request URL and returns them as a map. If no parameters are present, it returns an empty map.

Examples

URL:
http://localhost/tests/http1/test-003?a=true&lg=fr

Code:
res = {{
    getquery();
}};

Return value:
res = { "a": "true", "lg": "fr" }

See also

Version