Lines Matching full:scheme
159 const char *scheme, /* I - Scheme name */ in httpAssembleURI() argument
173 if (!uri || urilen < 1 || !scheme || port < 0) in httpAssembleURI()
182 * Assemble the URI starting with the scheme... in httpAssembleURI()
186 ptr = http_copy_encode(uri, scheme, end, NULL, NULL, 0); in httpAssembleURI()
191 if (!strcmp(scheme, "geo") || !strcmp(scheme, "mailto") || !strcmp(scheme, "tel")) in httpAssembleURI()
439 const char *scheme, /* I - Scheme name */ in httpAssembleURIf() argument
455 if (!uri || urilen < 1 || !scheme || port < 0 || !resourcef) in httpAssembleURIf()
477 return (httpAssembleURI(encoding, uri, urilen, scheme, username, host, in httpAssembleURIf()
900 char *scheme, /* O - Scheme [32] (http, https, etc.) */ in httpSeparate() argument
906 httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, 32, username, in httpSeparate()
924 char *scheme, /* O - Scheme (http, https, etc.) */ in httpSeparate2() argument
925 int schemelen, /* I - Size of scheme buffer */ in httpSeparate2()
934 httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, schemelen, username, in httpSeparate2()
950 char *scheme, /* O - Scheme (http, https, etc.) */ in httpSeparateURI() argument
951 int schemelen, /* I - Size of scheme buffer */ in httpSeparateURI()
970 if (scheme && schemelen > 0) in httpSeparateURI()
971 *scheme = '\0'; in httpSeparateURI()
989 if (!uri || !port || !scheme || schemelen <= 0 || !username || in httpSeparateURI()
998 * Grab the scheme portion of the URI... in httpSeparateURI()
1009 strlcpy(scheme, "ipp", (size_t)schemelen); in httpSeparateURI()
1018 strlcpy(scheme, "file", (size_t)schemelen); in httpSeparateURI()
1024 * Standard URI with scheme... in httpSeparateURI()
1027 for (ptr = scheme, end = scheme + schemelen - 1; in httpSeparateURI()
1038 if (*uri != ':' || *scheme == '.' || !*scheme) in httpSeparateURI()
1040 *scheme = '\0'; in httpSeparateURI()
1051 if (!strcmp(scheme, "http")) in httpSeparateURI()
1053 else if (!strcmp(scheme, "https")) in httpSeparateURI()
1055 else if (!strcmp(scheme, "ipp") || !strcmp(scheme, "ipps")) in httpSeparateURI()
1057 else if (!_cups_strcasecmp(scheme, "lpd")) in httpSeparateURI()
1059 else if (!strcmp(scheme, "socket")) /* Not yet registered with IANA... */ in httpSeparateURI()
1061 else if (strcmp(scheme, "file") && strcmp(scheme, "mailto") && strcmp(scheme, "tel")) in httpSeparateURI()
1210 * Validate hostname for file scheme - only empty and localhost are in httpSeparateURI()
1214 if (!strcmp(scheme, "file") && strcmp(host, "localhost") && host[0]) in httpSeparateURI()
1641 s = _("Bad scheme in URI"); in httpURIStatusString()
1650 s = _("Missing scheme in URI"); in httpURIStatusString()
1653 s = _("Unknown scheme in URI"); in httpURIStatusString()
1737 char scheme[32], /* URI components... */ in _httpResolveURI() local
1754 if ((status = httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, in _httpResolveURI()
1755 sizeof(scheme), userpass, sizeof(userpass), in _httpResolveURI()
1759 if (httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, in _httpResolveURI()
1760 sizeof(scheme), userpass, sizeof(userpass), in _httpResolveURI()
1872 if (!strcmp(scheme, "ippusb")) in _httpResolveURI()
1957 else if (extrasent == 0 && !strcmp(scheme, "ippusb")) in _httpResolveURI()
1970 else if (extrasent == 1 && !strcmp(scheme, "ippusb")) in _httpResolveURI()
2303 const char *scheme, /* URI scheme */ in http_resolve_cb() local
2341 * Figure out the scheme from the full name... in http_resolve_cb()
2345 scheme = "ipps"; in http_resolve_cb()
2347 scheme = "ipp"; in http_resolve_cb()
2349 scheme = "http"; in http_resolve_cb()
2351 scheme = "https"; in http_resolve_cb()
2353 scheme = "lpd"; in http_resolve_cb()
2355 scheme = "socket"; in http_resolve_cb()
2357 scheme = "riousbprint"; in http_resolve_cb()
2364 (!strcmp(scheme, "ipp") || !strcmp(scheme, "ipps")) && in http_resolve_cb()
2460 if ((!strcmp(scheme, "ipp") || !strcmp(scheme, "ipps")) && in http_resolve_cb()
2462 …httpAssembleURIf(HTTP_URI_CODING_ALL, uribuf->buffer, (int)uribuf->bufsize, scheme, NULL, hostTarg… in http_resolve_cb()
2464 …httpAssembleURI(HTTP_URI_CODING_ALL, uribuf->buffer, (int)uribuf->bufsize, scheme, NULL, hostTarge… in http_resolve_cb()
2516 const char *scheme, /* URI scheme */ in http_resolve_cb() local
2583 * Figure out the scheme from the full name... in http_resolve_cb()
2587 scheme = "ipps"; in http_resolve_cb()
2589 scheme = "ipp"; in http_resolve_cb()
2591 scheme = "http"; in http_resolve_cb()
2593 scheme = "https"; in http_resolve_cb()
2595 scheme = "lpd"; in http_resolve_cb()
2597 scheme = "socket"; in http_resolve_cb()
2610 (!strcmp(scheme, "ipp") || !strcmp(scheme, "ipps")) && in http_resolve_cb()
2729 …httpAssembleURI(HTTP_URI_CODING_ALL, uribuf->buffer, (int)uribuf->bufsize, scheme, NULL, hostTarge… in http_resolve_cb()