Using chrome to get the curl command for a request one gets a multi line request, e.g.
curl 'https://community.rstudio.com/' \
-H 'authority: community.rstudio.com' \
-H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
--compressed
Unfortunately, curl_translate() does not handle this correctly
httr2::curl_translate(r"{curl 'https://community.rstudio.com/' \
-H 'authority: community.rstudio.com' \
-H 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
--compressed}")
#> request("https://community.rstudio.com/") %>%
#> req_perform()
#> request("\") %>%
#> req_perform()
Created on 2022-07-27 by the reprex package (v2.0.1)