aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-04-02 12:08:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-04-02 12:08:12 +0000
commit005991126181a2967b2d0a5d3a20685837b763f1 (patch)
treeebc22a984e1210983aa626a238b31689762f7699
parente67157b5a2e22a52293eb9bba52079052b091c27 (diff)
James Atwill correctly pointed out that curl didn't follow Location: headers
properly when the new URL is an absolute one to a different port than the first URL...
-rw-r--r--lib/url.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index ec72cc644..e47f0568b 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -531,7 +531,11 @@ UrgError curl_urlget(UrgTag tag, ...)
free(data->newurl);
data->newurl = newest;
}
-
+ else {
+ /* This was an absolute URL, clear the port number! */
+ data->port = 0;
+ }
+
data->url = data->newurl;
data->newurl = NULL; /* don't show! */
@@ -1175,6 +1179,10 @@ static UrgError _urlget(struct UrlData *data)
infof(data, "Connected to %s (%s)\n", hp->h_name, inet_ntoa(in));
}
+#if 0 /* Kerberos experiements! Beware! Take cover! */
+ kerberos_connect(data, name);
+#endif
+
if((data->conf&(CONF_FTP|CONF_PROXY)) == CONF_FTP) {
result = ftp(data, &bytecount, data->user, data->passwd, ppath);
if(result)