+2001-12-01 Hrvoje Niksic <hniksic@arsdigita.com>
+
+ * url.c (url_full_path): Document better.
+
+ * http.c (gethttp): Use the full path when creating digest
+ authorization.
+
2001-12-01 Hrvoje Niksic <hniksic@arsdigita.com>
* cookies.c (path_matches): Return 0 if PREFIX doesn't begin with
}
else
{
+ /* Use the full path, i.e. one that includes the leading
+ slash and the query string, but is independent of proxy
+ setting. */
+ char *pth = url_full_path (u);
wwwauth = create_authorization_line (authenticate_h, user, passwd,
- command, u->path);
+ command, pth);
+ xfree (pth);
}
}
if (proxy)
full_path = xstrdup (u->url);
else
+ /* Use the full path, i.e. one that includes the leading slash and
+ the query string. E.g. if u->path is "foo/bar" and u->query is
+ "param=value", full_path will be "/foo/bar?param=value". */
full_path = url_full_path (u);
/* Allocate the memory for the request. */
#undef FROB
}
-/* Public function for getting the "full path". */
+/* Public function for getting the "full path". E.g. if u->path is
+ "foo/bar" and u->query is "param=value", full_path will be
+ "/foo/bar?param=value". */
+
char *
url_full_path (const struct url *url)
{
}
/* Sync u->path and u->url with u->dir and u->file. */
+
static void
sync_path (struct url *url)
{