Lines Matching refs:url
384 query_auth(struct url *URL) in query_auth()
427 struct url *url; in fetch() local
455 url = NULL; in fetch()
460 if ((url = fetchParseURL(URL)) == NULL) { in fetch()
466 if (!*url->scheme) { in fetch()
467 if (!*url->host) in fetch()
468 strcpy(url->scheme, SCHEME_FILE); in fetch()
469 else if (strncasecmp(url->host, "ftp.", 4) == 0) in fetch()
470 strcpy(url->scheme, SCHEME_FTP); in fetch()
471 else if (strncasecmp(url->host, "www.", 4) == 0) in fetch()
472 strcpy(url->scheme, SCHEME_HTTP); in fetch()
476 *is_http = strncmp(url->scheme, "http", 4) == 0; in fetch()
489 if (strcmp(url->scheme, SCHEME_FTP) == 0) { in fetch()
500 if (strcmp(url->scheme, SCHEME_HTTP) == 0 || in fetch()
501 strcmp(url->scheme, SCHEME_HTTPS) == 0) { in fetch()
512 url->ims_time = sb.st_mtime; in fetch()
524 r = fetchStat(url, &us, flags); in fetch()
560 url->offset = sb.st_size; in fetch()
579 f = fetchXGet(url, &us, flags); in fetch()
612 if (l_flag && strcmp(url->scheme, "file") == 0 && !o_stdout) { in fetch()
613 if (symlink(url->doc, path) == -1) { in fetch()
646 } else if (url->offset > sb.st_size) { in fetch()
685 if (of != NULL && fseeko(of, url->offset, SEEK_SET) != 0) { in fetch()
704 if (url->offset > 0) { in fetch()
710 url->offset = 0; in fetch()
711 if ((f = fetchXGet(url, &us, flags)) == NULL) { in fetch()
746 count = url->offset; in fetch()
879 if (url) in fetch()
880 fetchFreeURL(url); in fetch()