diff options
-rw-r--r-- | HISTORY.h | 4 | ||||
-rw-r--r-- | lib/curl.c | 2 | ||||
-rw-r--r-- | lib/test.c | 7 |
3 files changed, 10 insertions, 3 deletions
@@ -16,6 +16,10 @@ /* * ------------------------------------ + * +2017-10-09: version 1.1.122 (horchi) + - change: Fixed curl SSL mode + 2017-08-01: version 1.1.121 (rechner) - fixed: error, if no vdr available @@ -63,7 +63,7 @@ int cCurl::create() { // call only once per process and *before* any thread is started! - if (curl_global_init(CURL_GLOBAL_NOTHING /*CURL_GLOBAL_ALL*/) != 0) + if (curl_global_init(CURL_GLOBAL_SSL /*CURL_GLOBAL_ALL*/) != 0) { tell(0, "Error, something went wrong with curl_global_init()"); return fail; @@ -668,8 +668,11 @@ int main(int argc, char** argv) data.clear(); - asprintf(&url, "%s/eplist.cgi?action=show&file=%s", - "www.eplists.de", argv[1]); + if (strncmp(argv[1], "http", 4) == 0) + asprintf(&url, "%s", argv[1]); + else + asprintf(&url, "%s/eplist.cgi?action=show&file=%s", + "www.eplists.de", argv[1]); tell(0, "try to download [%s]", url); |