|
|
@ -122,8 +122,7 @@ main (int argc, char** argv) { |
|
|
|
contentType, |
|
|
|
attachName, |
|
|
|
urlBase ("http://file.kaz.bzh"), |
|
|
|
apiPage ("/script.php"), |
|
|
|
downloadPage ("/f.php"), |
|
|
|
uploadPage ("/a.php"), |
|
|
|
updatePage ("/a.php"), |
|
|
|
minimumAvailability ("month"), |
|
|
|
proxy; |
|
|
@ -145,8 +144,8 @@ main (int argc, char** argv) { |
|
|
|
("useTheForceLuke", bool_switch (&useTheForceLuke), "display hidded options") |
|
|
|
("debug,g", bool_switch (&debugFlag), "debug mode") |
|
|
|
("proxy,p", value<string> (&proxy)->default_value (proxy), "set proxy (proxy-host.org:8080)") |
|
|
|
("uploadPage,u", value<string> (&apiPage)->default_value (apiPage), "upload page") |
|
|
|
("downloadPage,d", value<string> (&downloadPage)->default_value (downloadPage), "download page") |
|
|
|
("uploadPage,u", value<string> (&uploadPage)->default_value (uploadPage), "upload page") |
|
|
|
("updatePage,t", value<string> (&updatePage)->default_value (updatePage), "update page") |
|
|
|
; |
|
|
|
|
|
|
|
options_description cmd ("All options"); |
|
|
@ -221,8 +220,8 @@ main (int argc, char** argv) { |
|
|
|
|
|
|
|
switch (jirCmd) { |
|
|
|
case SEND: { |
|
|
|
LOG ("SEND: " << (urlBase+apiPage)); |
|
|
|
curl_easy_setopt (easyhandle, CURLOPT_URL, (urlBase+apiPage).c_str ()); |
|
|
|
LOG ("SEND: " << (urlBase+uploadPage)); |
|
|
|
curl_easy_setopt (easyhandle, CURLOPT_URL, (urlBase+uploadPage).c_str ()); |
|
|
|
|
|
|
|
LOG ("maxUploadSize: " << maxUploadSize); |
|
|
|
long uploadsize = (size_t) maxUploadSize; |
|
|
|