Closed vende11s closed 1 year ago
Thanks for reporting! Yes, it should work like curl -iL
. Does your website/download work if you use it via curl
on your command line?
Closing since no response. Feel free to reopen in case this is still an issue.
Description
so I tried to download a file from a redirect link, tried this:
auto r = cpr::Get(cpr::Url{ link }, cpr::Redirect{ -1L });
and this:auto r = cpr::Download(of, cpr::Url{ link }, cpr::Redirect{});
but both responses are 302 and empty r.text shouldn't it work likecurl -iL
?Example/How to Reproduce
Possible Fix
-
Where did you get it from?
vcpkg
Additional Context/Your Environment