Hi,
This one will allow chained requests, e.g.
http://your.cache.com:3128/http://www.server.com.
--- ../src-orig/url.c Thu Mar 27 04:09:10 1997
+++ url.c Mon Apr 14 19:50:05 1997
@@ -197,7 +197,8 @@
LOCAL_ARRAY(char, proto, MAX_URL);
LOCAL_ARRAY(char, login, MAX_URL);
LOCAL_ARRAY(char, host, MAX_URL);
- LOCAL_ARRAY(char, urlpath, MAX_URL);
+ LOCAL_ARRAY(char, urlpath_orig, MAX_URL);
+ char *urlpath = urlpath_orig;
request_t *request = NULL;
char *t = NULL;
int port;
@@ -218,6 +219,11 @@
} else {
if (sscanf(url, "%[^:]://%[^/]%s", proto, host, urlpath) < 2)
return NULL;
+ /* If the urlpath is another request, e.g. it's actually a chained
+ proxy request, skip over the '/'. */
+ if (*urlpath == '/')
+ urlpath++;
+
protocol = urlParseProtocol(proto);
port = urlDefaultPort(protocol);
/* Is there any login informaiton? */
Cheers,
-- miguel a.l. paraz <map@iphil.net> +63-2-893-0850 iphil communications, makati city, philippines <http://www.iphil.net>Received on Tue Jul 29 2003 - 13:15:40 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:11:16 MST