crypto/heimdal/lib/hdb/hdb-ldap.c
1805
const char *url)
crypto/heimdal/lib/hdb/hdb-ldap.c
1857
h->h_url = strdup(url);
crypto/heimdal/lib/hx509/hxtool.c
1070
const char *url = "/";
crypto/heimdal/lib/hx509/hxtool.c
1082
url = opt->url_path_string;
crypto/heimdal/lib/hx509/hxtool.c
1116
url,
crypto/heimdal/lib/krb5/config_file.c
299
CFURLRef url;
crypto/heimdal/lib/krb5/config_file.c
301
url = CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, (UInt8 *)path, strlen(path), FALSE);
crypto/heimdal/lib/krb5/config_file.c
302
if (url == NULL) {
crypto/heimdal/lib/krb5/config_file.c
307
s = CFReadStreamCreateWithFile(kCFAllocatorDefault, url);
crypto/heimdal/lib/krb5/config_file.c
308
CFRelease(url);
crypto/openssl/apps/include/apps.h
295
ASN1_VALUE *app_http_get_asn1(const char *url, const char *proxy,
crypto/openssl/apps/lib/apps.c
2611
ASN1_VALUE *app_http_get_asn1(const char *url, const char *proxy,
crypto/openssl/apps/lib/apps.c
2624
if (url == NULL || it == NULL) {
crypto/openssl/apps/lib/apps.c
2629
if (!OSSL_HTTP_parse_url(url, &use_ssl, NULL /* userinfo */, &server, &port,
crypto/openssl/apps/lib/apps.c
2649
mem = OSSL_HTTP_get(url, proxy, no_proxy, NULL /* bio */, NULL /* rbio */,
crypto/openssl/apps/lib/http_server.c
272
char *meth, *url, *end;
crypto/openssl/apps/lib/http_server.c
339
url = meth = reqbuf;
crypto/openssl/apps/lib/http_server.c
340
if ((accept_get && CHECK_AND_SKIP_PREFIX(url, "GET "))
crypto/openssl/apps/lib/http_server.c
341
|| CHECK_AND_SKIP_PREFIX(url, "POST ")) {
crypto/openssl/apps/lib/http_server.c
344
url[-1] = '\0';
crypto/openssl/apps/lib/http_server.c
345
while (*url == ' ')
crypto/openssl/apps/lib/http_server.c
346
url++;
crypto/openssl/apps/lib/http_server.c
347
if (*url != '/') {
crypto/openssl/apps/lib/http_server.c
350
meth, url);
crypto/openssl/apps/lib/http_server.c
354
url++;
crypto/openssl/apps/lib/http_server.c
357
for (end = url; *end != '\0'; end++)
crypto/openssl/apps/lib/http_server.c
377
if (strlen(meth) == 3 && url[0] == '\0') {
crypto/openssl/apps/lib/http_server.c
382
len = urldecode(url);
crypto/openssl/apps/lib/http_server.c
385
"invalid %s request -- bad URL encoding: %s", meth, url);
crypto/openssl/apps/lib/http_server.c
390
if ((getbio = BIO_new_mem_buf(url, len)) == NULL
crypto/openssl/apps/lib/http_server.c
408
while (*url == '/')
crypto/openssl/apps/lib/http_server.c
409
url++;
crypto/openssl/apps/lib/http_server.c
410
while (end >= url + 2 && end[-2] == '/' && end[-1] == '/')
crypto/openssl/apps/lib/http_server.c
472
} else if (ppath != NULL && (*ppath = OPENSSL_strdup(url)) == NULL) {
crypto/openssl/apps/lib/http_server.c
474
"out of memory allocating %zu bytes", strlen(url) + 1);
crypto/openssl/crypto/http/http_client.c
1283
BIO *OSSL_HTTP_get(const char *url, const char *proxy, const char *no_proxy,
crypto/openssl/crypto/http/http_client.c
1299
if (url == NULL) {
crypto/openssl/crypto/http/http_client.c
1303
if ((current_url = OPENSSL_strdup(url)) == NULL)
crypto/openssl/crypto/http/http_lib.c
199
int OSSL_HTTP_parse_url(const char *url, int *pssl, char **puser, char **phost,
crypto/openssl/crypto/http/http_lib.c
209
if (!OSSL_parse_url(url, &scheme, puser, phost, &port, pport_num,
crypto/openssl/crypto/http/http_lib.c
53
int OSSL_parse_url(const char *url, char **pscheme, char **puser, char **phost,
crypto/openssl/crypto/http/http_lib.c
77
if (url == NULL) {
crypto/openssl/crypto/http/http_lib.c
83
scheme = scheme_end = url;
crypto/openssl/crypto/http/http_lib.c
84
p = strstr(url, "://");
crypto/openssl/crypto/http/http_lib.c
86
p = url;
crypto/openssl/crypto/ocsp/ocsp_ext.c
353
X509_EXTENSION *OCSP_crlID_new(const char *url, long *n, char *tim)
crypto/openssl/crypto/ocsp/ocsp_ext.c
360
if (url) {
crypto/openssl/crypto/ocsp/ocsp_ext.c
363
if (!(ASN1_STRING_set(cid->crlUrl, url, -1)))
crypto/openssl/crypto/x509/x_all.c
115
static ASN1_VALUE *simple_get_asn1(const char *url, BIO *bio, BIO *rbio,
crypto/openssl/crypto/x509/x_all.c
120
BIO *mem = OSSL_HTTP_get(url, NULL /* proxy */, NULL /* no_proxy */,
crypto/openssl/crypto/x509/x_all.c
134
X509 *X509_load_http(const char *url, BIO *bio, BIO *rbio, int timeout)
crypto/openssl/crypto/x509/x_all.c
136
return (X509 *)simple_get_asn1(url, bio, rbio, timeout,
crypto/openssl/crypto/x509/x_all.c
188
X509_CRL *X509_CRL_load_http(const char *url, BIO *bio, BIO *rbio, int timeout)
crypto/openssl/crypto/x509/x_all.c
190
return (X509_CRL *)simple_get_asn1(url, bio, rbio, timeout,
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
111
memset(h3ssl->url, '\0', sizeof(h3ssl->url));
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
1182
(unsigned long long)h3ssl.id_bidi, h3ssl.url);
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
1183
if (strstr(h3ssl.url, ".png"))
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
1185
else if (strstr(h3ssl.url, ".ico"))
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
1187
else if (strstr(h3ssl.url, ".htm"))
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
296
memset(h3ssl->url, 0, sizeof(h3ssl->url));
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
299
strncpy(h3ssl->url, "index.html", MAXURL);
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
301
memcpy(h3ssl->url, vvalue.base + 1, len - 1);
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
302
h3ssl->url[len - 1] = '\0';
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
305
memcpy(h3ssl->url, vvalue.base, len);
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
69
char url[MAXURL]; /* url to serve the request */
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
773
strcat(filename, h3ssl->url);
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
775
if (strcmp(h3ssl->url, "big") == 0) {
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
803
strcat(filename, h3ssl->url);
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
830
printf("step_read_data for %s %zu\n", h3ssl->url, h3ssl->ldata);
crypto/openssl/include/openssl/http.h
107
int OSSL_HTTP_parse_url(const char *url, int *pssl, char **puser, char **phost,
crypto/openssl/include/openssl/http.h
36
int OSSL_parse_url(const char *url, char **pscheme, char **puser, char **phost,
crypto/openssl/include/openssl/http.h
88
BIO *OSSL_HTTP_get(const char *url, const char *proxy, const char *no_proxy,
crypto/openssl/include/openssl/ocsp.h
361
#define OCSP_parse_url(url, host, port, path, ssl) \
crypto/openssl/include/openssl/ocsp.h
362
OSSL_HTTP_parse_url(url, ssl, NULL, host, port, NULL, path, NULL, NULL)
crypto/openssl/include/openssl/ocsp.h
396
X509_EXTENSION *OCSP_crlID_new(const char *url, long *n, char *tim);
crypto/openssl/include/openssl/x509.h
565
X509 *X509_load_http(const char *url, BIO *bio, BIO *rbio, int timeout);
crypto/openssl/include/openssl/x509.h
566
X509_CRL *X509_CRL_load_http(const char *url, BIO *bio, BIO *rbio, int timeout);
crypto/openssl/test/http_test.c
290
static int test_http_url_ok(const char *url, int exp_ssl, const char *exp_host,
crypto/openssl/test/http_test.c
299
res = TEST_true(OSSL_HTTP_parse_url(url, &ssl, &user, &host, &port, &num,
crypto/openssl/test/http_test.c
321
static int test_http_url_path_query_ok(const char *url, const char *exp_path_qu)
crypto/openssl/test/http_test.c
326
res = TEST_true(OSSL_HTTP_parse_url(url, NULL, NULL, &host, NULL, NULL,
crypto/openssl/test/http_test.c
335
static int test_http_url_host_ok(const char *url, const char *exp_host)
crypto/openssl/test/http_test.c
340
res = TEST_true(OSSL_HTTP_parse_url(url, NULL, NULL, &host, NULL, NULL,
crypto/openssl/test/http_test.c
391
static int test_http_url_invalid(const char *url)
crypto/openssl/test/http_test.c
397
res = TEST_false(OSSL_HTTP_parse_url(url, &ssl, NULL, &host, &port, &num,
lib/libfetch/common.c
1217
fetch_ssl(conn_t *conn, const struct url *URL, int verbose)
lib/libfetch/common.c
1822
fetch_netrc_auth(struct url *url)
lib/libfetch/common.c
1828
if (url->netrcfd < 0)
lib/libfetch/common.c
1829
url->netrcfd = fetch_netrc_open();
lib/libfetch/common.c
1830
if (url->netrcfd < 0)
lib/libfetch/common.c
1832
if ((f = fdopen(url->netrcfd, "r")) == NULL) {
lib/libfetch/common.c
1835
close(url->netrcfd);
lib/libfetch/common.c
1836
url->netrcfd = -1;
lib/libfetch/common.c
1841
DEBUGF("searching netrc for %s\n", url->host);
lib/libfetch/common.c
1849
strcasecmp(word, url->host) == 0) {
lib/libfetch/common.c
1860
if (snprintf(url->user, sizeof(url->user),
lib/libfetch/common.c
1861
"%s", word) > (int)sizeof(url->user)) {
lib/libfetch/common.c
1863
url->user[0] = '\0';
lib/libfetch/common.c
1868
if (snprintf(url->pwd, sizeof(url->pwd),
lib/libfetch/common.c
1869
"%s", word) > (int)sizeof(url->pwd)) {
lib/libfetch/common.c
1871
url->pwd[0] = '\0';
lib/libfetch/common.c
1882
url->netrcfd = -1;
lib/libfetch/common.c
1887
url->netrcfd = -1;
lib/libfetch/common.h
135
int fetch_ssl(conn_t *, const struct url *, int);
lib/libfetch/common.h
145
int fetch_netrc_auth(struct url *url);
lib/libfetch/common.h
176
FILE *http_request(struct url *, const char *,
lib/libfetch/common.h
177
struct url_stat *, struct url *, const char *);
lib/libfetch/common.h
178
FILE *http_request_body(struct url *, const char *,
lib/libfetch/common.h
179
struct url_stat *, struct url *, const char *,
lib/libfetch/common.h
181
FILE *ftp_request(struct url *, const char *,
lib/libfetch/common.h
182
struct url_stat *, struct url *, const char *);
lib/libfetch/fetch.c
100
fetchGet(struct url *URL, const char *flags)
lib/libfetch/fetch.c
110
fetchPut(struct url *URL, const char *flags)
lib/libfetch/fetch.c
130
fetchStat(struct url *URL, struct url_stat *us, const char *flags)
lib/libfetch/fetch.c
154
fetchList(struct url *URL, const char *flags)
lib/libfetch/fetch.c
175
struct url *u;
lib/libfetch/fetch.c
202
struct url *u;
lib/libfetch/fetch.c
220
struct url *u;
lib/libfetch/fetch.c
238
struct url *u;
lib/libfetch/fetch.c
253
struct url *
lib/libfetch/fetch.c
257
struct url *u;
lib/libfetch/fetch.c
346
struct url *
lib/libfetch/fetch.c
351
struct url *u;
lib/libfetch/fetch.c
489
fetchFreeURL(struct url *u)
lib/libfetch/fetch.c
76
fetchXGet(struct url *URL, struct url_stat *us, const char *flags)
lib/libfetch/fetch.h
101
FILE *fetchXGetHTTP(struct url *, struct url_stat *, const char *);
lib/libfetch/fetch.h
102
FILE *fetchGetHTTP(struct url *, const char *);
lib/libfetch/fetch.h
103
FILE *fetchPutHTTP(struct url *, const char *);
lib/libfetch/fetch.h
104
int fetchStatHTTP(struct url *, struct url_stat *, const char *);
lib/libfetch/fetch.h
105
struct url_ent *fetchListHTTP(struct url *, const char *);
lib/libfetch/fetch.h
106
FILE *fetchReqHTTP(struct url *, const char *, const char *,
lib/libfetch/fetch.h
110
FILE *fetchXGetFTP(struct url *, struct url_stat *, const char *);
lib/libfetch/fetch.h
111
FILE *fetchGetFTP(struct url *, const char *);
lib/libfetch/fetch.h
112
FILE *fetchPutFTP(struct url *, const char *);
lib/libfetch/fetch.h
113
int fetchStatFTP(struct url *, struct url_stat *, const char *);
lib/libfetch/fetch.h
114
struct url_ent *fetchListFTP(struct url *, const char *);
lib/libfetch/fetch.h
122
FILE *fetchXGet(struct url *, struct url_stat *, const char *);
lib/libfetch/fetch.h
123
FILE *fetchGet(struct url *, const char *);
lib/libfetch/fetch.h
124
FILE *fetchPut(struct url *, const char *);
lib/libfetch/fetch.h
125
int fetchStat(struct url *, struct url_stat *, const char *);
lib/libfetch/fetch.h
126
struct url_ent *fetchList(struct url *, const char *);
lib/libfetch/fetch.h
129
struct url *fetchMakeURL(const char *, const char *, int,
lib/libfetch/fetch.h
131
struct url *fetchParseURL(const char *);
lib/libfetch/fetch.h
132
void fetchFreeURL(struct url *);
lib/libfetch/fetch.h
137
typedef int (*auth_t)(struct url *);
lib/libfetch/fetch.h
94
FILE *fetchXGetFile(struct url *, struct url_stat *, const char *);
lib/libfetch/fetch.h
95
FILE *fetchGetFile(struct url *, const char *);
lib/libfetch/fetch.h
96
FILE *fetchPutFile(struct url *, const char *);
lib/libfetch/fetch.h
97
int fetchStatFile(struct url *, struct url_stat *, const char *);
lib/libfetch/fetch.h
98
struct url_ent *fetchListFile(struct url *, const char *);
lib/libfetch/file.c
114
fetchStatFile(struct url *u, struct url_stat *us, const char *flags __unused)
lib/libfetch/file.c
120
fetchListFile(struct url *u, const char *flags __unused)
lib/libfetch/file.c
43
fetchXGetFile(struct url *u, struct url_stat *us, const char *flags)
lib/libfetch/file.c
67
fetchGetFile(struct url *u, const char *flags)
lib/libfetch/file.c
73
fetchPutFile(struct url *u, const char *flags)
lib/libfetch/ftp.c
102
static struct url cached_host;
lib/libfetch/ftp.c
1024
ftp_isconnected(struct url *url)
lib/libfetch/ftp.c
1027
&& (strcmp(url->host, cached_host.host) == 0)
lib/libfetch/ftp.c
1028
&& (strcmp(url->user, cached_host.user) == 0)
lib/libfetch/ftp.c
1029
&& (strcmp(url->pwd, cached_host.pwd) == 0)
lib/libfetch/ftp.c
1030
&& (url->port == cached_host.port));
lib/libfetch/ftp.c
1037
ftp_cached_connect(struct url *url, struct url *purl, const char *flags)
lib/libfetch/ftp.c
1043
if (!url->port)
lib/libfetch/ftp.c
1044
url->port = fetch_default_port(url->scheme);
lib/libfetch/ftp.c
1047
if (ftp_isconnected(url)) {
lib/libfetch/ftp.c
1054
if ((conn = ftp_connect(url, purl, flags)) == NULL)
lib/libfetch/ftp.c
1059
memcpy(&cached_host, url, sizeof(*url));
lib/libfetch/ftp.c
1066
static struct url *
lib/libfetch/ftp.c
1067
ftp_get_proxy(struct url * url, const char *flags)
lib/libfetch/ftp.c
1069
struct url *purl;
lib/libfetch/ftp.c
1074
if (fetch_no_proxy_match(url->host))
lib/libfetch/ftp.c
1099
ftp_request(struct url *url, const char *op, struct url_stat *us,
lib/libfetch/ftp.c
1100
struct url *purl, const char *flags)
lib/libfetch/ftp.c
1109
return (http_request(url, "HEAD", us, purl, flags));
lib/libfetch/ftp.c
1111
return (http_request(url, "GET", us, purl, flags));
lib/libfetch/ftp.c
1119
conn = ftp_cached_connect(url, purl, flags);
lib/libfetch/ftp.c
1126
if (ftp_cwd(conn, url->doc) == -1)
lib/libfetch/ftp.c
1130
if (us && ftp_stat(conn, url->doc, us) == -1
lib/libfetch/ftp.c
1147
return (ftp_transfer(conn, op, url->doc, oflag, url->offset, flags));
lib/libfetch/ftp.c
1158
fetchXGetFTP(struct url *url, struct url_stat *us, const char *flags)
lib/libfetch/ftp.c
1160
return (ftp_request(url, "RETR", us, ftp_get_proxy(url, flags), flags));
lib/libfetch/ftp.c
1167
fetchGetFTP(struct url *url, const char *flags)
lib/libfetch/ftp.c
1169
return (fetchXGetFTP(url, NULL, flags));
lib/libfetch/ftp.c
1176
fetchPutFTP(struct url *url, const char *flags)
lib/libfetch/ftp.c
1178
return (ftp_request(url, CHECK_FLAG('a') ? "APPE" : "STOR", NULL,
lib/libfetch/ftp.c
1179
ftp_get_proxy(url, flags), flags));
lib/libfetch/ftp.c
1186
fetchStatFTP(struct url *url, struct url_stat *us, const char *flags)
lib/libfetch/ftp.c
1190
f = ftp_request(url, "STAT", us, ftp_get_proxy(url, flags), flags);
lib/libfetch/ftp.c
1205
fetchListFTP(struct url *url __unused, const char *flags __unused)
lib/libfetch/ftp.c
903
ftp_authenticate(conn_t *conn, struct url *url, struct url *purl)
lib/libfetch/ftp.c
912
if (url->user[0] == '\0')
lib/libfetch/ftp.c
913
fetch_netrc_auth(url);
lib/libfetch/ftp.c
914
user = url->user;
lib/libfetch/ftp.c
920
if (purl && url->port == fetch_default_port(url->scheme))
lib/libfetch/ftp.c
921
e = ftp_cmd(conn, "USER %s@%s", user, url->host);
lib/libfetch/ftp.c
923
e = ftp_cmd(conn, "USER %s@%s@%d", user, url->host, url->port);
lib/libfetch/ftp.c
929
pwd = url->pwd;
lib/libfetch/ftp.c
953
ftp_connect(struct url *url, struct url *purl, const char *flags)
lib/libfetch/ftp.c
979
conn = fetch_connect(url->host, url->port, af, verbose);
lib/libfetch/ftp.c
993
if ((e = ftp_authenticate(conn, url, purl)) != FTP_LOGGED_IN)
lib/libfetch/http.c
1226
http_auth_params_t *parms, struct url *url)
lib/libfetch/http.c
1263
"GET", url->doc, null, digest);
lib/libfetch/http.c
1270
c->nonce, url->doc, digest,
lib/libfetch/http.c
1276
c->nonce, url->doc, digest, options);
lib/libfetch/http.c
1311
http_auth_params_t *parms, struct url *url)
lib/libfetch/http.c
1344
return (http_digest_auth(conn, hdr, digest, parms, url));
lib/libfetch/http.c
1355
http_connect(struct url *URL, struct url *purl, const char *flags)
lib/libfetch/http.c
1357
struct url *curl;
lib/libfetch/http.c
1477
static struct url *
lib/libfetch/http.c
1478
http_get_proxy(struct url * url, const char *flags)
lib/libfetch/http.c
1480
struct url *purl;
lib/libfetch/http.c
1485
if (fetch_no_proxy_match(url->host))
lib/libfetch/http.c
1547
http_request(struct url *URL, const char *op, struct url_stat *us,
lib/libfetch/http.c
1548
struct url *purl, const char *flags)
lib/libfetch/http.c
1561
http_request_body(struct url *URL, const char *op, struct url_stat *us,
lib/libfetch/http.c
1562
struct url *purl, const char *flags, const char *content_type,
lib/libfetch/http.c
1568
struct url *url, *new;
lib/libfetch/http.c
1598
url = URL;
lib/libfetch/http.c
1614
if (!url->port)
lib/libfetch/http.c
1615
url->port = fetch_default_port(url->scheme);
lib/libfetch/http.c
1618
if (purl == NULL && strcmp(url->scheme, SCHEME_FTP) == 0) {
lib/libfetch/http.c
1620
return (ftp_request(url, "RETR", us, purl, flags));
lib/libfetch/http.c
1622
return (ftp_request(url, "STAT", us, purl, flags));
lib/libfetch/http.c
1626
if ((conn = http_connect(url, purl, flags)) == NULL)
lib/libfetch/http.c
1630
host = url->host;
lib/libfetch/http.c
1631
if (url->port != fetch_default_port(url->scheme)) {
lib/libfetch/http.c
1632
snprintf(hbuf, sizeof(hbuf), "%s:%d", host, url->port);
lib/libfetch/http.c
1639
url->scheme, host, url->doc);
lib/libfetch/http.c
1640
if (purl && strcmp(url->scheme, SCHEME_HTTPS) != 0) {
lib/libfetch/http.c
1642
op, url->scheme, host, url->doc);
lib/libfetch/http.c
1645
op, url->doc);
lib/libfetch/http.c
1648
if (ims && url->ims_time) {
lib/libfetch/http.c
1649
timestruct = gmtime((time_t *)&url->ims_time);
lib/libfetch/http.c
1681
&proxy_challenges, &aparams, url);
lib/libfetch/http.c
1697
if (*url->user || *url->pwd) {
lib/libfetch/http.c
1698
aparams.user = strdup(url->user);
lib/libfetch/http.c
1699
aparams.password = strdup(url->pwd);
lib/libfetch/http.c
1706
} else if (fetch_netrc_auth(url) == 0) {
lib/libfetch/http.c
1707
aparams.user = strdup(url->user);
lib/libfetch/http.c
1708
aparams.password = strdup(url->pwd);
lib/libfetch/http.c
1710
fetchAuthMethod(url) == 0) {
lib/libfetch/http.c
1711
aparams.user = strdup(url->user);
lib/libfetch/http.c
1712
aparams.password = strdup(url->pwd);
lib/libfetch/http.c
1718
&server_challenges, &aparams, url);
lib/libfetch/http.c
1732
url->scheme, host, url->doc);
lib/libfetch/http.c
1745
if (url->offset > 0)
lib/libfetch/http.c
1746
http_cmd(conn, "Range: bytes=%lld-", (long long)url->offset);
lib/libfetch/http.c
1881
new = fetchMakeURL(url->scheme, url->host,
lib/libfetch/http.c
1882
url->port, p, url->user, url->pwd);
lib/libfetch/http.c
1892
if (strcmp(new->host, url->host) == 0 &&
lib/libfetch/http.c
1894
strcpy(new->user, url->user);
lib/libfetch/http.c
1895
strcpy(new->pwd, url->pwd);
lib/libfetch/http.c
1897
new->offset = url->offset;
lib/libfetch/http.c
1898
new->length = url->length;
lib/libfetch/http.c
1899
new->ims_time = url->ims_time;
lib/libfetch/http.c
1944
if (url->offset > 0 && url->length == 0) {
lib/libfetch/http.c
1946
offset = url->offset;
lib/libfetch/http.c
1972
if (url != URL)
lib/libfetch/http.c
1973
fetchFreeURL(url);
lib/libfetch/http.c
1974
url = new;
lib/libfetch/http.c
2030
if (url != URL)
lib/libfetch/http.c
2031
fetchFreeURL(url);
lib/libfetch/http.c
2046
if (url != URL)
lib/libfetch/http.c
2047
fetchFreeURL(url);
lib/libfetch/http.c
2067
fetchXGetHTTP(struct url *URL, struct url_stat *us, const char *flags)
lib/libfetch/http.c
2076
fetchGetHTTP(struct url *URL, const char *flags)
lib/libfetch/http.c
2085
fetchPutHTTP(struct url *URL __unused, const char *flags __unused)
lib/libfetch/http.c
2095
fetchStatHTTP(struct url *URL, struct url_stat *us, const char *flags)
lib/libfetch/http.c
2110
fetchListHTTP(struct url *url __unused, const char *flags __unused)
lib/libfetch/http.c
2120
fetchReqHTTP(struct url *URL, const char *method, const char *flags,
sbin/ipf/ippool/ippool_y.y
674
add_htablehosts(char *url)
sbin/ipf/ippool/ippool_y.y
679
if (!strncmp(url, "file://", 7) || !strncmp(url, "http://", 7)) {
sbin/ipf/ippool/ippool_y.y
680
hlist = load_url(url);
sbin/ipf/ippool/ippool_y.y
688
if (gethost(hlist->al_family, url, &hlist->al_i6addr) == -1) {
sbin/ipf/ippool/ippool_y.y
719
add_poolhosts(char *url)
sbin/ipf/ippool/ippool_y.y
724
if (!strncmp(url, "file://", 7) || !strncmp(url, "http://", 7)) {
sbin/ipf/ippool/ippool_y.y
725
hlist = load_url(url);
sbin/ipf/ippool/ippool_y.y
733
if (gethost(hlist->al_family, url, &hlist->al_i6addr) == -1) {
sbin/ipf/libipf/load_http.c
189
url, linenum, buffer);
sbin/ipf/libipf/load_http.c
30
load_http(char *url)
sbin/ipf/libipf/load_http.c
41
if (strlen(url) > MAX_URL_LEN) {
sbin/ipf/libipf/load_http.c
52
error = snprintf(buffer, avail, "GET %s HTTP/1.0\r\n", url);
sbin/ipf/libipf/load_http.c
60
myurl = strdup(url);
sbin/ipf/libipf/load_http.c
67
fprintf(stderr, "load_http has a malformed URL '%s'\n", url);
sbin/ipf/libipf/load_http.c
77
fprintf(stderr, "load_http has a malformed URL '%s'\n", url);
sbin/ipf/libipf/load_http.c
88
fprintf(stderr, "URL is too large: %s\n", url);
sbin/ipf/libipf/load_url.c
12
load_url(char *url)
sbin/ipf/libipf/load_url.c
16
if (strncmp(url, "file://", 7) == 0) {
sbin/ipf/libipf/load_url.c
21
hosts = load_file(url);
sbin/ipf/libipf/load_url.c
23
} else if (*url == '/' || *url == '.') {
sbin/ipf/libipf/load_url.c
24
hosts = load_file(url);
sbin/ipf/libipf/load_url.c
26
} else if (strncmp(url, "http://", 7) == 0) {
sbin/ipf/libipf/load_url.c
27
hosts = load_http(url);
stand/efi/loader/memdisk.c
114
do_download_ramdisk(CHAR8 *url, bool is_disk)
stand/efi/loader/memdisk.c
129
printf("Downloading %s as a %s\n", url, is_disk ? "disk" : "cd");
stand/efi/loader/memdisk.c
131
Status = ipxe_download->Start(ipxe_download, url, download_data, download_finish,
usr.bin/fetch/fetch.c
380
query_auth(struct url *URL)
usr.bin/fetch/fetch.c
423
struct url *url;
usr.bin/fetch/fetch.c
452
url = NULL;
usr.bin/fetch/fetch.c
457
if ((url = fetchParseURL(URL)) == NULL) {
usr.bin/fetch/fetch.c
463
if (!*url->scheme) {
usr.bin/fetch/fetch.c
464
if (!*url->host)
usr.bin/fetch/fetch.c
465
strcpy(url->scheme, SCHEME_FILE);
usr.bin/fetch/fetch.c
466
else if (strncasecmp(url->host, "ftp.", 4) == 0)
usr.bin/fetch/fetch.c
467
strcpy(url->scheme, SCHEME_FTP);
usr.bin/fetch/fetch.c
468
else if (strncasecmp(url->host, "www.", 4) == 0)
usr.bin/fetch/fetch.c
469
strcpy(url->scheme, SCHEME_HTTP);
usr.bin/fetch/fetch.c
473
*is_http = strncmp(url->scheme, "http", 4) == 0;
usr.bin/fetch/fetch.c
486
if (strcmp(url->scheme, SCHEME_FTP) == 0) {
usr.bin/fetch/fetch.c
497
if (strcmp(url->scheme, SCHEME_HTTP) == 0 ||
usr.bin/fetch/fetch.c
498
strcmp(url->scheme, SCHEME_HTTPS) == 0) {
usr.bin/fetch/fetch.c
509
url->ims_time = sb.st_mtime;
usr.bin/fetch/fetch.c
519
r = fetchStat(url, &us, flags);
usr.bin/fetch/fetch.c
551
url->offset = sb.st_size;
usr.bin/fetch/fetch.c
568
f = fetchXGet(url, &us, flags);
usr.bin/fetch/fetch.c
597
if (l_flag && strcmp(url->scheme, "file") == 0 && !o_stdout) {
usr.bin/fetch/fetch.c
598
if (symlink(url->doc, path) == -1) {
usr.bin/fetch/fetch.c
631
} else if (url->offset > sb.st_size) {
usr.bin/fetch/fetch.c
670
if (of != NULL && fseeko(of, url->offset, SEEK_SET) != 0) {
usr.bin/fetch/fetch.c
689
if (url->offset > 0) {
usr.bin/fetch/fetch.c
695
url->offset = 0;
usr.bin/fetch/fetch.c
696
if ((f = fetchXGet(url, &us, flags)) == NULL) {
usr.bin/fetch/fetch.c
731
count = url->offset;
usr.bin/fetch/fetch.c
865
if (url)
usr.bin/fetch/fetch.c
866
fetchFreeURL(url);
usr.sbin/pkg/config.c
339
free(r->url);
usr.sbin/pkg/config.c
399
free(repo->url);
usr.sbin/pkg/config.c
400
repo->url = strdup(ucl_object_tostring(cur));
usr.sbin/pkg/config.c
401
if (repo->url == NULL)
usr.sbin/pkg/config.c
435
if (repo->url == NULL) {
usr.sbin/pkg/config.c
688
r->url = c[PACKAGESITE].value;
usr.sbin/pkg/config.h
75
char *url;
usr.sbin/pkg/pkg.c
254
fetch_to_fd(struct repository *repo, const char *url, char *path, const char *fetchOpts)
usr.sbin/pkg/pkg.c
256
struct url *u;
usr.sbin/pkg/pkg.c
278
if ((u = fetchParseURL(url)) == NULL) {
usr.sbin/pkg/pkg.c
279
warn("fetchParseURL('%s')", url);
usr.sbin/pkg/pkg.c
851
char url[MAXPATHLEN];
usr.sbin/pkg/pkg.c
860
printf("Bootstrapping pkg from %s, please wait...\n", repo->url);
usr.sbin/pkg/pkg.c
865
packagesite = repo->url;
usr.sbin/pkg/pkg.c
870
snprintf(url, MAXPATHLEN, "%s/Latest/%s", packagesite, bootstrap_name);
usr.sbin/pkg/pkg.c
874
if ((fd_pkg = fetch_to_fd(repo, url, tmppkg, fetchOpts)) == -1)
usr.sbin/pkg/pkg.c
881
snprintf(url, MAXPATHLEN, "%s/Latest/%s.sig",
usr.sbin/pkg/pkg.c
884
if ((fd_sig = fetch_to_fd(repo, url, tmpsig, fetchOpts)) == -1) {
usr.sbin/pkg/pkg.c
897
snprintf(url, MAXPATHLEN, "%s/Latest/%s.pubkeysig",
usr.sbin/pkg/pkg.c
900
if ((fd_sig = fetch_to_fd(repo, url, tmpsig, fetchOpts)) == -1) {
usr.sbin/pkg/pkg.c
916
warnx("Error fetching %s: %s", url, fetchLastErrString);
usr.sbin/ypldap/aldap.c
568
aldap_parse_url(char *url, struct aldap_url *lu)
usr.sbin/ypldap/aldap.c
574
if ((lu->buffer = p = strdup(url)) == NULL)
usr.sbin/ypldap/aldap.c
661
free(url);
usr.sbin/ypldap/aldap.c
670
aldap_search_url(struct aldap *ldap, char *url, int typesonly, int sizelimit,
usr.sbin/ypldap/aldap.c
678
if (aldap_parse_url(url, lu))