improve the parsing of form data

This commit is contained in:
Chunting Gu
2020-12-07 14:16:08 +08:00
parent 63abc5bbda
commit abd30ab69d
6 changed files with 45 additions and 31 deletions
+7 -6
View File
@@ -8,13 +8,14 @@
int main(int argc, char* argv[]) {
if (argc != 3) {
std::cout << "usage: file_downloader <url> <path>" << std::endl;
std::cout << "Usage: file_downloader <url> <path>" << std::endl;
std::cout << std::endl;
std::cout << "examples:" << std::endl;
std::cout << " $ file_downloader http://httpbin.org/image/jpeg D:/test.jpg"
<< std::endl;
std::cout << " $ file_downloader https://www.google.com/favicon.ico"
<< " D:/test.ico" << std::endl;
std::cout << "Examples:" << std::endl;
std::cout
<< " $ ./file_downloader http://httpbin.org/image/jpeg ~/test.jpg"
<< std::endl;
std::cout << " $ ./file_downloader https://www.google.com/favicon.ico"
<< " ~/test.ico" << std::endl;
return 1;
}