Lines Matching refs:url
30 #include "url.h"
105 static const char *find_host_sep(const char *url)
111 sep = strstr(url, "//");
113 sep = url;
121 sep = url + strlen(url);
124 query = url + strlen(url);
144 static CURLUcode urlencode_str(struct dynbuf *o, const char *url,
151 const unsigned char *host_sep = (const unsigned char *) url;
155 host_sep = (const unsigned char *) find_host_sep(url);
157 for(iptr = (unsigned char *)url; /* read from here */
203 size_t Curl_is_absolute_url(const char *url, char *buf, size_t buflen,
212 if(guess_scheme && STARTS_WITH_DRIVE_PREFIX(url))
215 if(ISALPHA(url[0]))
217 char s = url[i];
227 if(i && (url[i] == ':') && ((url[i + 1] == '/') || !guess_scheme)) {
237 buf[i] = Curl_raw_tolower(url[i]);
367 /* copy over the root url part */
392 static CURLUcode junkscan(const char *url, size_t *urllen, unsigned int flags)
401 size_t n = strlen(url);
408 nfine = strcspn(url, badbytes);
410 (!(flags & CURLU_ALLOW_SPACE) && strchr(url, ' ')))
475 /* Option DISALLOW_USER is set and url contains username. */
593 /* pass '25' if present and is a url encoded percent sign */
1000 static CURLUcode parseurl(const char *url, CURLU *u, unsigned int flags)
1013 DEBUGASSERT(url);
1017 result = junkscan(url, &urllen, flags);
1021 schemelen = Curl_is_absolute_url(url, schemebuf, sizeof(schemebuf),
1035 path = (char *)&url[5];
1114 pathlen = urllen - (ptr - url);
1148 const char *p = &url[schemelen + 1];
1181 hostp = url;
1197 pathlen = urllen - (path - url);
1354 static CURLUcode parseurl_and_replace(const char *url, CURLU *u,
1360 result = parseurl(url, &tmpurl, flags);
1497 char *url;
1505 url = aprintf("file://%s%s%s",
1584 url = aprintf("%s://%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
1602 if(!url)
1604 *part = url;
1840 * (we could not get an absolute url in 'oldurl'),