Lines Matching refs:scheme
157 const char *scheme, /* I - Scheme name */ in httpAssembleURI() argument
171 if (!uri || urilen < 1 || !scheme || port < 0) in httpAssembleURI()
184 ptr = http_copy_encode(uri, scheme, end, NULL, NULL, 0); in httpAssembleURI()
189 if (!strcmp(scheme, "geo") || !strcmp(scheme, "mailto") || !strcmp(scheme, "tel")) in httpAssembleURI()
437 const char *scheme, /* I - Scheme name */ in httpAssembleURIf() argument
453 if (!uri || urilen < 1 || !scheme || port < 0 || !resourcef) in httpAssembleURIf()
475 return (httpAssembleURI(encoding, uri, urilen, scheme, username, host, in httpAssembleURIf()
891 char *scheme, /* O - Scheme [32] (http, https, etc.) */ in httpSeparate() argument
897 httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, 32, username, in httpSeparate()
915 char *scheme, /* O - Scheme (http, https, etc.) */ in httpSeparate2() argument
925 httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, schemelen, username, in httpSeparate2()
941 char *scheme, /* O - Scheme (http, https, etc.) */ in httpSeparateURI() argument
961 if (scheme && schemelen > 0) in httpSeparateURI()
962 *scheme = '\0'; in httpSeparateURI()
980 if (!uri || !port || !scheme || schemelen <= 0 || !username || in httpSeparateURI()
1000 strlcpy(scheme, "ipp", (size_t)schemelen); in httpSeparateURI()
1009 strlcpy(scheme, "file", (size_t)schemelen); in httpSeparateURI()
1018 for (ptr = scheme, end = scheme + schemelen - 1; in httpSeparateURI()
1029 if (*uri != ':' || *scheme == '.' || !*scheme) in httpSeparateURI()
1031 *scheme = '\0'; in httpSeparateURI()
1042 if (!strcmp(scheme, "http")) in httpSeparateURI()
1044 else if (!strcmp(scheme, "https")) in httpSeparateURI()
1046 else if (!strcmp(scheme, "ipp") || !strcmp(scheme, "ipps")) in httpSeparateURI()
1048 else if (!_cups_strcasecmp(scheme, "lpd")) in httpSeparateURI()
1050 else if (!strcmp(scheme, "socket")) /* Not yet registered with IANA... */ in httpSeparateURI()
1052 else if (strcmp(scheme, "file") && strcmp(scheme, "mailto") && strcmp(scheme, "tel")) in httpSeparateURI()
1205 if (!strcmp(scheme, "file") && strcmp(host, "localhost") && host[0]) in httpSeparateURI()
1722 char scheme[32], /* URI components... */ in _httpResolveURI() local
1739 if ((status = httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, in _httpResolveURI()
1740 sizeof(scheme), userpass, sizeof(userpass), in _httpResolveURI()
1744 if (httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, in _httpResolveURI()
1745 sizeof(scheme), userpass, sizeof(userpass), in _httpResolveURI()
1857 if (!strcmp(scheme, "ippusb")) in _httpResolveURI()
1942 else if (extrasent == 0 && !strcmp(scheme, "ippusb")) in _httpResolveURI()
1955 else if (extrasent == 1 && !strcmp(scheme, "ippusb")) in _httpResolveURI()
2288 const char *scheme, /* URI scheme */ in http_resolve_cb() local
2330 scheme = "ipps"; in http_resolve_cb()
2332 scheme = "ipp"; in http_resolve_cb()
2334 scheme = "http"; in http_resolve_cb()
2336 scheme = "https"; in http_resolve_cb()
2338 scheme = "lpd"; in http_resolve_cb()
2340 scheme = "socket"; in http_resolve_cb()
2342 scheme = "riousbprint"; in http_resolve_cb()
2349 (!strcmp(scheme, "ipp") || !strcmp(scheme, "ipps")) && in http_resolve_cb()
2445 if ((!strcmp(scheme, "ipp") || !strcmp(scheme, "ipps")) && in http_resolve_cb()
2447 …httpAssembleURIf(HTTP_URI_CODING_ALL, uribuf->buffer, (int)uribuf->bufsize, scheme, NULL, hostTarg… in http_resolve_cb()
2449 …httpAssembleURI(HTTP_URI_CODING_ALL, uribuf->buffer, (int)uribuf->bufsize, scheme, NULL, hostTarge… in http_resolve_cb()
2501 const char *scheme, /* URI scheme */ in http_resolve_cb() local
2556 scheme = "ipp"; in http_resolve_cb()
2558 scheme = "lpd"; in http_resolve_cb()
2560 scheme = "socket"; in http_resolve_cb()
2562 scheme = "riousbprint"; in http_resolve_cb()
2565 scheme = "ipps"; in http_resolve_cb()
2567 scheme = "ipp"; in http_resolve_cb()
2569 scheme = "http"; in http_resolve_cb()
2571 scheme = "https"; in http_resolve_cb()
2573 scheme = "lpd"; in http_resolve_cb()
2575 scheme = "socket"; in http_resolve_cb()
2588 (!strcmp(scheme, "ipp") || !strcmp(scheme, "ipps")) && in http_resolve_cb()
2685 httpAssembleURI(HTTP_URI_CODING_ALL, uribuf->buffer, (int)uribuf->bufsize, scheme, in http_resolve_cb()