Lines Matching defs:scheme

62 	{ URL_BAD_SCHEME,	FETCH_URL,	"Invalid URL scheme" },
71 * Select the appropriate protocol for the URL scheme, and return a
83 if (strcmp(URL->scheme, SCHEME_FILE) == 0)
85 else if (strcmp(URL->scheme, SCHEME_FTP) == 0)
87 else if (strcmp(URL->scheme, SCHEME_HTTP) == 0)
89 else if (strcmp(URL->scheme, SCHEME_HTTPS) == 0)
96 * Select the appropriate protocol for the URL scheme, and return a
106 * Select the appropriate protocol for the URL scheme, and return a
113 if (strcmp(URL->scheme, SCHEME_FILE) == 0)
115 else if (strcmp(URL->scheme, SCHEME_FTP) == 0)
117 else if (strcmp(URL->scheme, SCHEME_HTTP) == 0)
119 else if (strcmp(URL->scheme, SCHEME_HTTPS) == 0)
126 * Select the appropriate protocol for the URL scheme, and return the
137 if (strcmp(URL->scheme, SCHEME_FILE) == 0)
139 else if (strcmp(URL->scheme, SCHEME_FTP) == 0)
141 else if (strcmp(URL->scheme, SCHEME_HTTP) == 0)
143 else if (strcmp(URL->scheme, SCHEME_HTTPS) == 0)
150 * Select the appropriate protocol for the URL scheme, and return a
157 if (strcmp(URL->scheme, SCHEME_FILE) == 0)
159 else if (strcmp(URL->scheme, SCHEME_FTP) == 0)
161 else if (strcmp(URL->scheme, SCHEME_HTTP) == 0)
163 else if (strcmp(URL->scheme, SCHEME_HTTPS) == 0)
254 fetchMakeURL(const char *scheme, const char *host, int port, const char *doc,
259 if (!scheme || (!host && !doc)) {
283 seturl(scheme);
361 /* scheme name */
366 u->scheme[i] = tolower((unsigned char)URL[i]);
378 (u->scheme[0] == '\0' &&
440 if (strcmp(u->scheme, SCHEME_HTTP) == 0 ||
441 strcmp(u->scheme, SCHEME_HTTPS) == 0) {
466 DEBUGF("scheme: \"%s\"\n"
472 u->scheme, u->user, u->pwd,