Lines Matching defs:url
258 if (arg_key || startswith(u->url, "https://")) {
268 else if (arg_trust || startswith(u->url, "https://"))
286 code = curl_easy_setopt(u->easy, CURLOPT_URL, u->url);
425 static int setup_uploader(Uploader *u, const char *url, const char *state_file) {
430 assert(url);
435 if (!(host = startswith(url, "http://")) && !(host = startswith(url, "https://"))) {
436 host = url;
441 u->url = strjoin(proto, url, "/upload", NULL);
446 t = strdupa(url);
451 u->url = strjoin(proto, t, ":" STRINGIFY(DEFAULT_PORT), "/upload", NULL);
453 if (!u->url)
479 free(u->url);
501 u->url, (int) sizeof(u->error), u->error);
504 u->url, curl_easy_strerror(code));
517 u->url, status, strna(u->answer));
521 u->url, status, strna(u->answer));
553 " -u --url=URL Upload to this address (default port "
595 { "url", required_argument, NULL, 'u' },
630 log_error("cannot use more than one --url");
750 log_error("Required --url/-u option missing.");