mirror of
https://git.tesses.org/tesses50/tessesframework.git
synced 2026-06-01 18:15:31 +00:00
Overhaul cmake configuration, add console api, fix http code that caused issues with cgi-bin
This commit is contained in:
@@ -3,25 +3,22 @@
|
||||
using namespace Tesses::Framework;
|
||||
using namespace Tesses::Framework::Streams;
|
||||
using namespace Tesses::Framework::Http;
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if(argc < 3)
|
||||
{
|
||||
printf("USAGE: %s <url> <path>\n",argv[0]);
|
||||
printf("USAGE: %s <unixSocket> <url> <path>\n",argv[0]);
|
||||
int main(int argc, char **argv) {
|
||||
if (argc < 3) {
|
||||
printf("USAGE: %s <url> <path>\n", argv[0]);
|
||||
printf("USAGE: %s <unixSocket> <url> <path>\n", argv[0]);
|
||||
return 1;
|
||||
}
|
||||
if(argc >= 4)
|
||||
{
|
||||
if (argc >= 4) {
|
||||
std::string unixSocket = argv[1];
|
||||
std::string url = argv[2];
|
||||
std::string path = argv[3];
|
||||
Tesses::Framework::Http::DownloadUnixSocketToFileSimple(unixSocket,url,path);
|
||||
}
|
||||
else {
|
||||
std::string path = argv[3];
|
||||
Tesses::Framework::Http::DownloadUnixSocketToFileSimple(unixSocket, url,
|
||||
path);
|
||||
} else {
|
||||
std::string path = argv[2];
|
||||
Tesses::Framework::Http::DownloadToFileSimple(argv[1],path);
|
||||
Tesses::Framework::Http::DownloadToFileSimple(argv[1], path);
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user