I know I can call system("curl path-LJO") from a c++ program to download a file and save it in the current directory and then I can use the STL to save it to a std::string. But is there a way to save it directly in a std::string? I know abot https://github.com/curl/curl but I was wondering: is any specifier in the curl command that does that? If not, what would be the best way to approach this?
See Question&Answers more detail:os