Home | History | Annotate | Download | only in libfetch

Lines Matching refs:scheme

63 	{ URL_BAD_SCHEME,	FETCH_URL,	"Invalid URL scheme" },
72 * Select the appropriate protocol for the URL scheme, and return a
83 if (strcasecmp(URL->scheme, SCHEME_FILE) == 0)
85 else if (strcasecmp(URL->scheme, SCHEME_FTP) == 0)
87 else if (strcasecmp(URL->scheme, SCHEME_HTTP) == 0)
89 else if (strcasecmp(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
112 if (strcasecmp(URL->scheme, SCHEME_FILE) == 0)
114 else if (strcasecmp(URL->scheme, SCHEME_FTP) == 0)
116 else if (strcasecmp(URL->scheme, SCHEME_HTTP) == 0)
118 else if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0)
125 * Select the appropriate protocol for the URL scheme, and return the
135 if (strcasecmp(URL->scheme, SCHEME_FILE) == 0)
137 else if (strcasecmp(URL->scheme, SCHEME_FTP) == 0)
139 else if (strcasecmp(URL->scheme, SCHEME_HTTP) == 0)
141 else if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0)
148 * Select the appropriate protocol for the URL scheme, and return a
154 if (strcasecmp(URL->scheme, SCHEME_FILE) == 0)
156 else if (strcasecmp(URL->scheme, SCHEME_FTP) == 0)
158 else if (strcasecmp(URL->scheme, SCHEME_HTTP) == 0)
160 else if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0)
251 fetchMakeURL(const char *scheme, const char *host, int port, const char *doc,
256 if (!scheme || (!host && !doc)) {
279 seturl(scheme);
308 /* scheme name */
310 snprintf(u->scheme, URL_SCHEMELEN+1,
323 (u->scheme[0] == '\0' &&
377 if (strcasecmp(u->scheme, SCHEME_HTTP) == 0 ||
378 strcasecmp(u->scheme, SCHEME_HTTPS) == 0) {
404 "scheme: [%s]\n"
410 u->scheme, u->user, u->pwd,