Lines Matching refs:scheme
58 /* scheme is not URL encoded, the longest libcurl supported ones are... */
72 char *scheme;
89 free(u->scheme);
196 * Returns the length of the scheme if the given URL is absolute (as opposed
197 * to relative). Stores the scheme in the buffer if TRUE and 'buf' is
201 * scheme.
220 scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
228 /* If this does not guess scheme, the scheme always ends with the colon so
232 /* the length of the scheme is the name part only */
458 /* if this is a known scheme, get some details */
459 if(u->scheme)
460 h = Curl_get_scheme_handler(u->scheme);
542 Don't do it if the URL has no scheme, to make something that looks like
543 a scheme not work!
859 &host, !!u->scheme);
1025 /* handle the file: scheme */
1038 u->scheme = strdup("file");
1039 if(!u->scheme) {
1169 /* no scheme! */
1179 * The URL was badly formatted, let's try without scheme specified.
1185 u->scheme = strdup(schemep);
1186 if(!u->scheme) {
1222 u->scheme = strdup(schemep);
1223 if(!u->scheme) {
1396 DUP(u, in, scheme);
1434 ptr = u->scheme;
1464 if(!ptr && (flags & CURLU_DEFAULT_PORT) && u->scheme) {
1466 a default one for the scheme */
1467 const struct Curl_handler *h = Curl_get_scheme_handler(u->scheme);
1473 else if(ptr && u->scheme) {
1475 it matches the default one for the scheme */
1476 const struct Curl_handler *h = Curl_get_scheme_handler(u->scheme);
1498 char *scheme;
1504 if(u->scheme && strcasecompare("file", u->scheme)) {
1514 if(u->scheme)
1515 scheme = u->scheme;
1517 scheme = (char *) DEFAULT_SCHEME;
1521 h = Curl_get_scheme_handler(scheme);
1524 a default one for the scheme */
1532 the default one for the scheme */
1585 scheme,
1707 storep = &u->scheme;
1762 /* verify that it is a fine scheme */
1765 storep = &u->scheme;