mv update from script.php to a.php

This commit is contained in:
2022-02-17 17:28:04 +01:00
parent 9c61fd740c
commit bf06a130f6
2 changed files with 6 additions and 7 deletions

View File

@ -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;