req_options | R Documentation |
req_options()
is for expert use only; it allows you to directly set
libcurl options to access features that are otherwise not available in
httr2.
req_options(.req, ...)
.req |
A request. |
... |
< |
A modified HTTP request.
# req_options() allows you to access curl options that are not otherwise
# exposed by httr2. For example, in very special cases you may need to
# turn off SSL verification. This is generally a bad idea so httr2 doesn't
# provide a convenient wrapper, but if you really know what you're doing
# you can still access this libcurl option:
req <- request("https://example.com") |>
req_options(ssl_verifypeer = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.