ncurl("https://www.r-project.org/",
convert = FALSE,
response = c("date", "server"),
timeout = 1000L)
ncurl("https://postman-echo.com/put",
method = "PUT",
headers = list(Authorization = "Bearer APIKEY"),
data = "hello world",
timeout = 1500L)
ncurl("https://postman-echo.com/post",
method = "POST",
headers = c(`Content-Type` = "application/json"),
data = '{"k":"v"}',
timeout = 1500L)
Run the code above in your browser using DataLab