aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-01-16 22:14:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-01-16 22:14:37 +0000
commit67a83c1b3465c44b249eaa44fdc492952e59b31f (patch)
tree7240899b4d2b76095abdb09dcccd657a6177e9b5 /lib/url.c
parent1e8d094274139238fb710451e069ce42317e55e4 (diff)
David Shaw finally removed all traces of Gopher and we are now officially
not supporting it. It hasn't been functioning for years anyway, so this is just finally stating what already was true. And a cleanup at the same time.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c26
1 files changed, 2 insertions, 24 deletions
diff --git a/lib/url.c b/lib/url.c
index e012e01af..b8927fbcd 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2485,14 +2485,12 @@ static CURLcode CreateConnection(struct SessionHandle *data,
/* Note: if you add a new protocol, please update the list in
* lib/version.c too! */
- if(checkprefix("GOPHER.", conn->host.name))
- strcpy(conn->protostr, "gopher");
+ if(checkprefix("FTP.", conn->host.name))
+ strcpy(conn->protostr, "ftp");
#ifdef USE_SSL
else if(checkprefix("FTPS", conn->host.name))
strcpy(conn->protostr, "ftps");
#endif /* USE_SSL */
- else if(checkprefix("FTP.", conn->host.name))
- strcpy(conn->protostr, "ftp");
else if(checkprefix("TELNET.", conn->host.name))
strcpy(conn->protostr, "telnet");
else if (checkprefix("DICT.", conn->host.name))
@@ -2596,7 +2594,6 @@ static CURLcode CreateConnection(struct SessionHandle *data,
* http_proxy=http://some.server.dom:port/
* https_proxy=http://some.server.dom:port/
* ftp_proxy=http://some.server.dom:port/
- * gopher_proxy=http://some.server.dom:port/
* no_proxy=domain1.dom,host.domain2.dom
* (a comma-separated list of hosts which should
* not be proxied, or an asterisk to override
@@ -2779,25 +2776,6 @@ static CURLcode CreateConnection(struct SessionHandle *data,
return CURLE_UNSUPPORTED_PROTOCOL;
#endif /* !USE_SSL */
}
- else if (strequal(conn->protostr, "GOPHER")) {
-#ifndef CURL_DISABLE_GOPHER
- conn->port = PORT_GOPHER;
- conn->remote_port = PORT_GOPHER;
- /* Skip /<item-type>/ in path if present */
- if (isdigit((int)conn->path[1])) {
- conn->path = strchr(&conn->path[1], '/');
- if (conn->path == NULL)
- conn->path = conn->pathbuffer;
- }
- conn->protocol |= PROT_GOPHER;
- conn->curl_do = Curl_http;
- conn->curl_do_more = NULL;
- conn->curl_done = Curl_http_done;
-#else
- failf(data, LIBCURL_NAME
- " was built with GOPHER disabled, gopher: not supported!");
-#endif
- }
else if(strequal(conn->protostr, "FTP") ||
strequal(conn->protostr, "FTPS")) {