test.cpp: In function ‘int main()’:
test.cpp:56:91: error: cannot convert ‘std::basic_string<char>’ to ‘const char*’ for argument ‘2’ to ‘void downloadFile(const char*, const char*)’
jlb: Of course, you're right, but I thought it was the other way around.... I really don't touch C-strings for many years and code in C++ for around 10. Even main arguments are parsed to avoid these issues.