improve the parsing of form data
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user