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
2604
ASN1_VALUE *app_http_get_asn1(const char *url, const char *proxy,
crypto/openssl/apps/lib/apps.c
2617
if (url == NULL || it == NULL) {
crypto/openssl/apps/lib/apps.c
2622
if (!OSSL_HTTP_parse_url(url, &use_ssl, NULL /* userinfo */, &server, &port,
crypto/openssl/apps/lib/apps.c
2642
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
1266
BIO *OSSL_HTTP_get(const char *url, const char *proxy, const char *no_proxy,
crypto/openssl/crypto/http/http_client.c
1282
if (url == NULL) {
crypto/openssl/crypto/http/http_client.c
1286
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
289
static int test_http_url_ok(const char *url, int exp_ssl, const char *exp_host,
crypto/openssl/test/http_test.c
298
res = TEST_true(OSSL_HTTP_parse_url(url, &ssl, &user, &host, &port, &num,
crypto/openssl/test/http_test.c
320
static int test_http_url_path_query_ok(const char *url, const char *exp_path_qu)
crypto/openssl/test/http_test.c
325
res = TEST_true(OSSL_HTTP_parse_url(url, NULL, NULL, &host, NULL, NULL,
crypto/openssl/test/http_test.c
334
static int test_http_url_host_ok(const char *url, const char *exp_host)
crypto/openssl/test/http_test.c
339
res = TEST_true(OSSL_HTTP_parse_url(url, NULL, NULL, &host, NULL, NULL,
crypto/openssl/test/http_test.c
390
static int test_http_url_invalid(const char *url)
crypto/openssl/test/http_test.c
396
res = TEST_false(OSSL_HTTP_parse_url(url, &ssl, NULL, &host, &port, &num,
lib/libfetch/common.c
1174
fetch_ssl(conn_t *conn, const struct url *URL, int verbose)
lib/libfetch/common.c
1657
fetch_netrc_auth(struct url *url)
lib/libfetch/common.c
1663
if (url->netrcfd < 0)
lib/libfetch/common.c
1664
url->netrcfd = fetch_netrc_open();
lib/libfetch/common.c
1665
if (url->netrcfd < 0)
lib/libfetch/common.c
1667
if ((f = fdopen(url->netrcfd, "r")) == NULL) {
lib/libfetch/common.c
1670
close(url->netrcfd);
lib/libfetch/common.c
1671
url->netrcfd = -1;
lib/libfetch/common.c
1676
DEBUGF("searching netrc for %s\n", url->host);
lib/libfetch/common.c
1684
strcasecmp(word, url->host) == 0) {
lib/libfetch/common.c
1695
if (snprintf(url->user, sizeof(url->user),
lib/libfetch/common.c
1696
"%s", word) > (int)sizeof(url->user)) {
lib/libfetch/common.c
1698
url->user[0] = '\0';
lib/libfetch/common.c
1703
if (snprintf(url->pwd, sizeof(url->pwd),
lib/libfetch/common.c
1704
"%s", word) > (int)sizeof(url->pwd)) {
lib/libfetch/common.c
1706
url->pwd[0] = '\0';
lib/libfetch/common.c
1717
url->netrcfd = -1;
lib/libfetch/common.c
1722
url->netrcfd = -1;
lib/libfetch/common.h
121
int fetch_ssl(conn_t *, const struct url *, int);
lib/libfetch/common.h
130
int fetch_netrc_auth(struct url *url);
lib/libfetch/common.h
161
FILE *http_request(struct url *, const char *,
lib/libfetch/common.h
162
struct url_stat *, struct url *, const char *);
lib/libfetch/common.h
163
FILE *http_request_body(struct url *, const char *,
lib/libfetch/common.h
164
struct url_stat *, struct url *, const char *,
lib/libfetch/common.h
166
FILE *ftp_request(struct url *, const char *,
lib/libfetch/common.h
167
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
1026
ftp_isconnected(struct url *url)
lib/libfetch/ftp.c
1029
&& (strcmp(url->host, cached_host.host) == 0)
lib/libfetch/ftp.c
1030
&& (strcmp(url->user, cached_host.user) == 0)
lib/libfetch/ftp.c
1031
&& (strcmp(url->pwd, cached_host.pwd) == 0)
lib/libfetch/ftp.c
1032
&& (url->port == cached_host.port));
lib/libfetch/ftp.c
1039
ftp_cached_connect(struct url *url, struct url *purl, const char *flags)
lib/libfetch/ftp.c
1045
if (!url->port)
lib/libfetch/ftp.c
1046
url->port = fetch_default_port(url->scheme);
lib/libfetch/ftp.c
1049
if (ftp_isconnected(url)) {
lib/libfetch/ftp.c
1056
if ((conn = ftp_connect(url, purl, flags)) == NULL)
lib/libfetch/ftp.c
1061
memcpy(&cached_host, url, sizeof(*url));
lib/libfetch/ftp.c
1068
static struct url *
lib/libfetch/ftp.c
1069
ftp_get_proxy(struct url * url, const char *flags)
lib/libfetch/ftp.c
1071
struct url *purl;
lib/libfetch/ftp.c
1076
if (fetch_no_proxy_match(url->host))
lib/libfetch/ftp.c
1101
ftp_request(struct url *url, const char *op, struct url_stat *us,
lib/libfetch/ftp.c
1102
struct url *purl, const char *flags)
lib/libfetch/ftp.c
1111
return (http_request(url, "HEAD", us, purl, flags));
lib/libfetch/ftp.c
1113
return (http_request(url, "GET", us, purl, flags));
lib/libfetch/ftp.c
1121
conn = ftp_cached_connect(url, purl, flags);
lib/libfetch/ftp.c
1128
if (ftp_cwd(conn, url->doc) == -1)
lib/libfetch/ftp.c
1132
if (us && ftp_stat(conn, url->doc, us) == -1
lib/libfetch/ftp.c
1149
return (ftp_transfer(conn, op, url->doc, oflag, url->offset, flags));
lib/libfetch/ftp.c
1160
fetchXGetFTP(struct url *url, struct url_stat *us, const char *flags)
lib/libfetch/ftp.c
1162
return (ftp_request(url, "RETR", us, ftp_get_proxy(url, flags), flags));
lib/libfetch/ftp.c
1169
fetchGetFTP(struct url *url, const char *flags)
lib/libfetch/ftp.c
1171
return (fetchXGetFTP(url, NULL, flags));
lib/libfetch/ftp.c
1178
fetchPutFTP(struct url *url, const char *flags)
lib/libfetch/ftp.c
1180
return (ftp_request(url, CHECK_FLAG('a') ? "APPE" : "STOR", NULL,
lib/libfetch/ftp.c
1181
ftp_get_proxy(url, flags), flags));
lib/libfetch/ftp.c
1188
fetchStatFTP(struct url *url, struct url_stat *us, const char *flags)
lib/libfetch/ftp.c
1192
f = ftp_request(url, "STAT", us, ftp_get_proxy(url, flags), flags);
lib/libfetch/ftp.c
1207
fetchListFTP(struct url *url __unused, const char *flags __unused)
lib/libfetch/ftp.c
905
ftp_authenticate(conn_t *conn, struct url *url, struct url *purl)
lib/libfetch/ftp.c
914
if (url->user[0] == '\0')
lib/libfetch/ftp.c
915
fetch_netrc_auth(url);
lib/libfetch/ftp.c
916
user = url->user;
lib/libfetch/ftp.c
922
if (purl && url->port == fetch_default_port(url->scheme))
lib/libfetch/ftp.c
923
e = ftp_cmd(conn, "USER %s@%s", user, url->host);
lib/libfetch/ftp.c
925
e = ftp_cmd(conn, "USER %s@%s@%d", user, url->host, url->port);
lib/libfetch/ftp.c
931
pwd = url->pwd;
lib/libfetch/ftp.c
955
ftp_connect(struct url *url, struct url *purl, const char *flags)
lib/libfetch/ftp.c
981
conn = fetch_connect(url->host, url->port, af, verbose);
lib/libfetch/ftp.c
995
if ((e = ftp_authenticate(conn, url, purl)) != FTP_LOGGED_IN)
lib/libfetch/http.c
1248
http_auth_params_t *parms, struct url *url)
lib/libfetch/http.c
1285
"GET", url->doc, null, digest);
lib/libfetch/http.c
1292
c->nonce, url->doc, digest,
lib/libfetch/http.c
1298
c->nonce, url->doc, digest, options);
lib/libfetch/http.c
1333
http_auth_params_t *parms, struct url *url)
lib/libfetch/http.c
1366
return (http_digest_auth(conn, hdr, digest, parms, url));
lib/libfetch/http.c
1377
http_connect(struct url *URL, struct url *purl, const char *flags)
lib/libfetch/http.c
1379
struct url *curl;
lib/libfetch/http.c
1499
static struct url *
lib/libfetch/http.c
1500
http_get_proxy(struct url * url, const char *flags)
lib/libfetch/http.c
1502
struct url *purl;
lib/libfetch/http.c
1507
if (fetch_no_proxy_match(url->host))
lib/libfetch/http.c
1569
http_request(struct url *URL, const char *op, struct url_stat *us,
lib/libfetch/http.c
1570
struct url *purl, const char *flags)
lib/libfetch/http.c
1583
http_request_body(struct url *URL, const char *op, struct url_stat *us,
lib/libfetch/http.c
1584
struct url *purl, const char *flags, const char *content_type,
lib/libfetch/http.c
1590
struct url *url, *new;
lib/libfetch/http.c
1620
url = URL;
lib/libfetch/http.c
1636
if (!url->port)
lib/libfetch/http.c
1637
url->port = fetch_default_port(url->scheme);
lib/libfetch/http.c
1640
if (purl == NULL && strcmp(url->scheme, SCHEME_FTP) == 0) {
lib/libfetch/http.c
1642
return (ftp_request(url, "RETR", us, purl, flags));
lib/libfetch/http.c
1644
return (ftp_request(url, "STAT", us, purl, flags));
lib/libfetch/http.c
1648
if ((conn = http_connect(url, purl, flags)) == NULL)
lib/libfetch/http.c
1652
host = url->host;
lib/libfetch/http.c
1653
if (url->port != fetch_default_port(url->scheme)) {
lib/libfetch/http.c
1654
snprintf(hbuf, sizeof(hbuf), "%s:%d", host, url->port);
lib/libfetch/http.c
1661
url->scheme, host, url->doc);
lib/libfetch/http.c
1662
if (purl && strcmp(url->scheme, SCHEME_HTTPS) != 0) {
lib/libfetch/http.c
1664
op, url->scheme, host, url->doc);
lib/libfetch/http.c
1667
op, url->doc);
lib/libfetch/http.c
1670
if (ims && url->ims_time) {
lib/libfetch/http.c
1671
timestruct = gmtime((time_t *)&url->ims_time);
lib/libfetch/http.c
1703
&proxy_challenges, &aparams, url);
lib/libfetch/http.c
1719
if (*url->user || *url->pwd) {
lib/libfetch/http.c
1720
aparams.user = strdup(url->user);
lib/libfetch/http.c
1721
aparams.password = strdup(url->pwd);
lib/libfetch/http.c
1728
} else if (fetch_netrc_auth(url) == 0) {
lib/libfetch/http.c
1729
aparams.user = strdup(url->user);
lib/libfetch/http.c
1730
aparams.password = strdup(url->pwd);
lib/libfetch/http.c
1732
fetchAuthMethod(url) == 0) {
lib/libfetch/http.c
1733
aparams.user = strdup(url->user);
lib/libfetch/http.c
1734
aparams.password = strdup(url->pwd);
lib/libfetch/http.c
1740
&server_challenges, &aparams, url);
lib/libfetch/http.c
1754
url->scheme, host, url->doc);
lib/libfetch/http.c
1767
if (url->offset > 0)
lib/libfetch/http.c
1768
http_cmd(conn, "Range: bytes=%lld-", (long long)url->offset);
lib/libfetch/http.c
1903
new = fetchMakeURL(url->scheme, url->host,
lib/libfetch/http.c
1904
url->port, p, url->user, url->pwd);
lib/libfetch/http.c
1914
if (strcmp(new->host, url->host) == 0 &&
lib/libfetch/http.c
1916
strcpy(new->user, url->user);
lib/libfetch/http.c
1917
strcpy(new->pwd, url->pwd);
lib/libfetch/http.c
1919
new->offset = url->offset;
lib/libfetch/http.c
1920
new->length = url->length;
lib/libfetch/http.c
1921
new->ims_time = url->ims_time;
lib/libfetch/http.c
1966
if (url->offset > 0 && url->length == 0) {
lib/libfetch/http.c
1968
offset = url->offset;
lib/libfetch/http.c
1994
if (url != URL)
lib/libfetch/http.c
1995
fetchFreeURL(url);
lib/libfetch/http.c
1996
url = new;
lib/libfetch/http.c
2052
if (url != URL)
lib/libfetch/http.c
2053
fetchFreeURL(url);
lib/libfetch/http.c
2068
if (url != URL)
lib/libfetch/http.c
2069
fetchFreeURL(url);
lib/libfetch/http.c
2089
fetchXGetHTTP(struct url *URL, struct url_stat *us, const char *flags)
lib/libfetch/http.c
2098
fetchGetHTTP(struct url *URL, const char *flags)
lib/libfetch/http.c
2107
fetchPutHTTP(struct url *URL __unused, const char *flags __unused)
lib/libfetch/http.c
2117
fetchStatHTTP(struct url *URL, struct url_stat *us, const char *flags)
lib/libfetch/http.c
2132
fetchListHTTP(struct url *url __unused, const char *flags __unused)
lib/libfetch/http.c
2142
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);
usr.bin/fetch/fetch.c
384
query_auth(struct url *URL)
usr.bin/fetch/fetch.c
427
struct url *url;
usr.bin/fetch/fetch.c
455
url = NULL;
usr.bin/fetch/fetch.c
460
if ((url = fetchParseURL(URL)) == NULL) {
usr.bin/fetch/fetch.c
466
if (!*url->scheme) {
usr.bin/fetch/fetch.c
467
if (!*url->host)
usr.bin/fetch/fetch.c
468
strcpy(url->scheme, SCHEME_FILE);
usr.bin/fetch/fetch.c
469
else if (strncasecmp(url->host, "ftp.", 4) == 0)
usr.bin/fetch/fetch.c
470
strcpy(url->scheme, SCHEME_FTP);
usr.bin/fetch/fetch.c
471
else if (strncasecmp(url->host, "www.", 4) == 0)
usr.bin/fetch/fetch.c
472
strcpy(url->scheme, SCHEME_HTTP);
usr.bin/fetch/fetch.c
476
*is_http = strncmp(url->scheme, "http", 4) == 0;
usr.bin/fetch/fetch.c
489
if (strcmp(url->scheme, SCHEME_FTP) == 0) {
usr.bin/fetch/fetch.c
500
if (strcmp(url->scheme, SCHEME_HTTP) == 0 ||
usr.bin/fetch/fetch.c
501
strcmp(url->scheme, SCHEME_HTTPS) == 0) {
usr.bin/fetch/fetch.c
512
url->ims_time = sb.st_mtime;
usr.bin/fetch/fetch.c
524
r = fetchStat(url, &us, flags);
usr.bin/fetch/fetch.c
560
url->offset = sb.st_size;
usr.bin/fetch/fetch.c
579
f = fetchXGet(url, &us, flags);
usr.bin/fetch/fetch.c
612
if (l_flag && strcmp(url->scheme, "file") == 0 && !o_stdout) {
usr.bin/fetch/fetch.c
613
if (symlink(url->doc, path) == -1) {
usr.bin/fetch/fetch.c
646
} else if (url->offset > sb.st_size) {
usr.bin/fetch/fetch.c
685
if (of != NULL && fseeko(of, url->offset, SEEK_SET) != 0) {
usr.bin/fetch/fetch.c
704
if (url->offset > 0) {
usr.bin/fetch/fetch.c
710
url->offset = 0;
usr.bin/fetch/fetch.c
711
if ((f = fetchXGet(url, &us, flags)) == NULL) {
usr.bin/fetch/fetch.c
746
count = url->offset;
usr.bin/fetch/fetch.c
879
if (url)
usr.bin/fetch/fetch.c
880
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))