Lines Matching full:scheme

161     const char        *scheme,		/* I - Scheme name */  in httpAssembleURI()  argument
175 if (!uri || urilen < 1 || !scheme || port < 0) in httpAssembleURI()
184 * Assemble the URI starting with the scheme... in httpAssembleURI()
188 ptr = http_copy_encode(uri, scheme, end, NULL, NULL, 0); in httpAssembleURI()
193 if (!strcmp(scheme, "geo") || !strcmp(scheme, "mailto") || !strcmp(scheme, "tel")) in httpAssembleURI()
441 const char *scheme, /* I - Scheme name */ in httpAssembleURIf() argument
457 if (!uri || urilen < 1 || !scheme || port < 0 || !resourcef) in httpAssembleURIf()
479 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()
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()
1479 s = _("Bad scheme in URI"); in httpURIStatusString()
1488 s = _("Missing scheme in URI"); in httpURIStatusString()
1491 s = _("Unknown scheme in URI"); in httpURIStatusString()
1575 char scheme[32], /* URI components... */ in _httpResolveURI() local
1592 if ((status = httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, in _httpResolveURI()
1593 sizeof(scheme), userpass, sizeof(userpass), in _httpResolveURI()
1597 if (httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, in _httpResolveURI()
1598 sizeof(scheme), userpass, sizeof(userpass), in _httpResolveURI()
1713 if (!strcmp(scheme, "ippusb")) in _httpResolveURI()
1798 else if (extrasent == 0 && !strcmp(scheme, "ippusb")) in _httpResolveURI()
1811 else if (extrasent == 1 && !strcmp(scheme, "ippusb")) in _httpResolveURI()
2144 const char *scheme, /* URI scheme */ in http_resolve_cb() local
2182 * Figure out the scheme from the full name... in http_resolve_cb()
2186 scheme = "ipps"; in http_resolve_cb()
2188 scheme = "ipp"; in http_resolve_cb()
2190 scheme = "http"; in http_resolve_cb()
2192 scheme = "https"; in http_resolve_cb()
2194 scheme = "lpd"; in http_resolve_cb()
2196 scheme = "socket"; in http_resolve_cb()
2198 scheme = "riousbprint"; in http_resolve_cb()
2205 (!strcmp(scheme, "ipp") || !strcmp(scheme, "ipps")) && in http_resolve_cb()
2301 if ((!strcmp(scheme, "ipp") || !strcmp(scheme, "ipps")) && in http_resolve_cb()
2303 …httpAssembleURIf(HTTP_URI_CODING_ALL, uribuf->buffer, (int)uribuf->bufsize, scheme, NULL, hostTarg… in http_resolve_cb()
2305 …httpAssembleURI(HTTP_URI_CODING_ALL, uribuf->buffer, (int)uribuf->bufsize, scheme, NULL, hostTarge… in http_resolve_cb()
2357 const char *scheme, /* URI scheme */ in http_resolve_cb() local
2408 * Figure out the scheme from the full name... in http_resolve_cb()
2412 scheme = "ipp"; in http_resolve_cb()
2414 scheme = "lpd"; in http_resolve_cb()
2416 scheme = "socket"; in http_resolve_cb()
2418 scheme = "riousbprint"; in http_resolve_cb()
2421 scheme = "ipps"; in http_resolve_cb()
2423 scheme = "ipp"; in http_resolve_cb()
2425 scheme = "http"; in http_resolve_cb()
2427 scheme = "https"; in http_resolve_cb()
2429 scheme = "lpd"; in http_resolve_cb()
2431 scheme = "socket"; in http_resolve_cb()
2444 (!strcmp(scheme, "ipp") || !strcmp(scheme, "ipps")) && in http_resolve_cb()
2541 httpAssembleURI(HTTP_URI_CODING_ALL, uribuf->buffer, (int)uribuf->bufsize, scheme, in http_resolve_cb()