Performs HTTP POST request using httr. Mirrors http_get() but for POST
requests with a body payload.
Usage
http_post(
url,
body,
timeout = 120,
accept = NULL,
content_type = "application/x-www-form-urlencoded",
verbose = TRUE
)Arguments
- url
Character string with the full URL
- body
Character string with the POST request body (typically an SDMX filter key for large queries)
- timeout
Numeric timeout in seconds
- accept
Character string with Accept header value
- content_type
Character string with Content-Type header value. Defaults to
"application/x-www-form-urlencoded".- verbose
Logical whether to log status messages