Build an equivalent R request for a curl request Build an equivalent R request for a curl request curl curl

Build an equivalent R request for a curl request


You can use the GET function:

library(httr)r <- GET("http://urlhere", add_headers(key = value))

add_headers allows you to add header data to your request.

If you use ?GET you can see more information and options.