]> mj.ucw.cz Git - libucw.git/blobdiff - lib/url.h
indexer rewritten to generate redirect brackets
[libucw.git] / lib / url.h
index 0c2751298eca8267cd2882d23b97706381a13184..c01c1693f1fae26f16a7b057e9f86d8478adfd56 100644 (file)
--- a/lib/url.h
+++ b/lib/url.h
@@ -1,8 +1,11 @@
 /*
  *     Sherlock Library -- URL Functions
  *
- *     (c) 1997 Martin Mares <mj@ucw.cz>
+ *     (c) 1997--2002 Martin Mares <mj@ucw.cz>
  *     (c) 2001 Robert Spalek <robert@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
 #ifndef _SHERLOCK_URL_H
@@ -35,6 +38,7 @@ struct url {
   byte *protocol;
   uns protoid;
   byte *user;
+  byte *pass;
   byte *host;
   uns port;                            /* ~0 if unspec */
   byte *rest;
@@ -46,6 +50,7 @@ int url_normalize(struct url *, struct url *);
 int url_canonicalize(struct url *);
 int url_pack(struct url *, byte *);
 int url_canon_split(byte *, byte *, byte *, struct url *);
+int url_auto_canonicalize(byte *, byte *);
 uns identify_protocol(byte *);
 int url_has_repeated_component(byte *url);