1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/req-options.R
\name{req_proxy}
\alias{req_proxy}
\title{Use a proxy for a request}
\usage{
req_proxy(
req,
url,
port = NULL,
username = NULL,
password = NULL,
auth = "basic"
)
}
\arguments{
\item{req}{A httr2 \link{request} object.}
\item{url, port}{Location of proxy.}
\item{username, password}{Login details for proxy, if needed.}
\item{auth}{Type of HTTP authentication to use. Should be one of the
following: \code{basic}, \code{digest}, \code{digest_ie}, \code{gssnegotiate}, \code{ntlm}, \code{any}.}
}
\description{
Use a proxy for a request
}
\examples{
# Proxy from https://www.proxynova.com/proxy-server-list/
\dontrun{
request("http://hadley.nz") |>
req_proxy("20.116.130.70", 3128) |>
req_perform()
}
}
|