Lines Matching full:url

1180 	IN char * pszDigestUri,   /* requested URL */  in DigestCalcResponse()
1248 http_auth_params_t *parms, struct url *url) in http_digest_auth() argument
1285 "GET", url->doc, null, digest); in http_digest_auth()
1292 c->nonce, url->doc, digest, in http_digest_auth()
1298 c->nonce, url->doc, digest, options); in http_digest_auth()
1333 http_auth_params_t *parms, struct url *url) in http_authorize() argument
1366 return (http_digest_auth(conn, hdr, digest, parms, url)); in http_authorize()
1377 http_connect(struct url *URL, struct url *purl, const char *flags) in http_connect() argument
1379 struct url *curl; in http_connect()
1404 curl = (purl != NULL) ? purl : URL; in http_connect()
1411 if (strcmp(URL->scheme, SCHEME_HTTPS) == 0 && purl) { in http_connect()
1413 http_cmd(conn, "CONNECT %s:%d HTTP/1.1", URL->host, URL->port); in http_connect()
1414 http_cmd(conn, "Host: %s:%d", URL->host, URL->port); in http_connect()
1478 if (strcmp(URL->scheme, SCHEME_HTTPS) == 0 && in http_connect()
1479 fetch_ssl(conn, URL, verbose) == -1) { in http_connect()
1499 static struct url *
1500 http_get_proxy(struct url * url, const char *flags) in http_get_proxy() argument
1502 struct url *purl; in http_get_proxy()
1507 if (fetch_no_proxy_match(url->host)) in http_get_proxy()
1569 http_request(struct url *URL, const char *op, struct url_stat *us, in http_request() argument
1570 struct url *purl, const char *flags) in http_request()
1573 return (http_request_body(URL, op, us, purl, flags, NULL, NULL)); in http_request()
1583 http_request_body(struct url *URL, const char *op, struct url_stat *us, in http_request_body() argument
1584 struct url *purl, const char *flags, const char *content_type, in http_request_body()
1590 struct url *url, *new; in http_request_body() local
1619 /* try the provided URL first */ in http_request_body()
1620 url = URL; in http_request_body()
1636 if (!url->port) in http_request_body()
1637 url->port = fetch_default_port(url->scheme); in http_request_body()
1639 /* were we redirected to an FTP URL? */ in http_request_body()
1640 if (purl == NULL && strcmp(url->scheme, SCHEME_FTP) == 0) { in http_request_body()
1642 return (ftp_request(url, "RETR", us, purl, flags)); in http_request_body()
1644 return (ftp_request(url, "STAT", us, purl, flags)); in http_request_body()
1648 if ((conn = http_connect(url, purl, flags)) == NULL) in http_request_body()
1652 host = url->host; in http_request_body()
1653 if (url->port != fetch_default_port(url->scheme)) { in http_request_body()
1654 snprintf(hbuf, sizeof(hbuf), "%s:%d", host, url->port); in http_request_body()
1661 url->scheme, host, url->doc); in http_request_body()
1662 if (purl && strcmp(url->scheme, SCHEME_HTTPS) != 0) { in http_request_body()
1664 op, url->scheme, host, url->doc); in http_request_body()
1667 op, url->doc); in http_request_body()
1670 if (ims && url->ims_time) { in http_request_body()
1671 timestruct = gmtime((time_t *)&url->ims_time); in http_request_body()
1703 &proxy_challenges, &aparams, url); in http_request_body()
1710 * set in the url. This would be weird because we'd send the in http_request_body()
1719 if (*url->user || *url->pwd) { in http_request_body()
1720 aparams.user = strdup(url->user); in http_request_body()
1721 aparams.password = strdup(url->pwd); in http_request_body()
1728 } else if (fetch_netrc_auth(url) == 0) { in http_request_body()
1729 aparams.user = strdup(url->user); in http_request_body()
1730 aparams.password = strdup(url->pwd); in http_request_body()
1732 fetchAuthMethod(url) == 0) { in http_request_body()
1733 aparams.user = strdup(url->user); in http_request_body()
1734 aparams.password = strdup(url->pwd); in http_request_body()
1740 &server_challenges, &aparams, url); in http_request_body()
1754 url->scheme, host, url->doc); in http_request_body()
1767 if (url->offset > 0) in http_request_body()
1768 http_cmd(conn, "Range: bytes=%lld-", (long long)url->offset); in http_request_body()
1903 new = fetchMakeURL(url->scheme, url->host, in http_request_body()
1904 url->port, p, url->user, url->pwd); in http_request_body()
1909 DEBUGF("failed to parse new URL\n"); in http_request_body()
1914 if (strcmp(new->host, url->host) == 0 && in http_request_body()
1916 strcpy(new->user, url->user); in http_request_body()
1917 strcpy(new->pwd, url->pwd); in http_request_body()
1919 new->offset = url->offset; in http_request_body()
1920 new->length = url->length; in http_request_body()
1921 new->ims_time = url->ims_time; in http_request_body()
1966 if (url->offset > 0 && url->length == 0) { in http_request_body()
1968 offset = url->offset; in http_request_body()
1994 if (url != URL) in http_request_body()
1995 fetchFreeURL(url); in http_request_body()
1996 url = new; in http_request_body()
2037 if (URL->offset > 0 && offset > URL->offset) { in http_request_body()
2043 URL->offset = offset; in http_request_body()
2044 URL->length = clength; in http_request_body()
2052 if (url != URL) in http_request_body()
2053 fetchFreeURL(url); in http_request_body()
2068 if (url != URL) in http_request_body()
2069 fetchFreeURL(url); in http_request_body()
2089 fetchXGetHTTP(struct url *URL, struct url_stat *us, const char *flags) in fetchXGetHTTP() argument
2091 return (http_request(URL, "GET", us, http_get_proxy(URL, flags), flags)); in fetchXGetHTTP()
2098 fetchGetHTTP(struct url *URL, const char *flags) in fetchGetHTTP() argument
2100 return (fetchXGetHTTP(URL, NULL, flags)); in fetchGetHTTP()
2107 fetchPutHTTP(struct url *URL __unused, const char *flags __unused) in fetchPutHTTP()
2117 fetchStatHTTP(struct url *URL, struct url_stat *us, const char *flags) in fetchStatHTTP() argument
2121 f = http_request(URL, "HEAD", us, http_get_proxy(URL, flags), flags); in fetchStatHTTP()
2132 fetchListHTTP(struct url *url __unused, const char *flags __unused) in fetchListHTTP()
2142 fetchReqHTTP(struct url *URL, const char *method, const char *flags, in fetchReqHTTP() argument
2146 return (http_request_body(URL, method, NULL, http_get_proxy(URL, flags), in fetchReqHTTP()