Use a proxy for a request
req_proxy(
req,
url,
port = NULL,
username = NULL,
password = NULL,
auth = "basic"
)A httr2 request object.
Location of proxy.
Login details for proxy, if needed.
Type of HTTP authentication to use. Should be one of the
following: basic, digest, digest_ie, gssnegotiate, ntlm, any.
# Proxy from https://www.proxynova.com/proxy-server-list/
if (FALSE) { # \dontrun{
request("http://hadley.nz") |>
req_proxy("20.116.130.70", 3128) |>
req_perform()
} # }