-struct urlinfo
-{
- char *url; /* Unchanged URL */
- enum url_scheme scheme; /* URL scheme */
-
- char *host; /* Extracted hostname */
- unsigned short port;
- char ftp_type;
- char *path, *dir, *file, *qstring;
- /* Path, dir, file, and query string
- (properly decoded) */
- char *user, *passwd; /* Username and password */
- struct urlinfo *proxy; /* The exact string to pass to proxy
- server */
- char *referer; /* The source from which the request
- URI was obtained */
- char *local; /* The local filename of the URL
- document */
-};
-
-enum convert_options {
- CO_NOCONVERT = 0, /* don't convert this URL */
- CO_CONVERT_TO_RELATIVE, /* convert to relative, e.g. to
- "../../otherdir/foo.gif" */
- CO_CONVERT_TO_COMPLETE /* convert to absolute, e.g. to
- "http://orighost/somedir/bar.jpg". */
-};
-
-/* A structure that defines the whereabouts of a URL, i.e. its
- position in an HTML document, etc. */
-
-typedef struct _urlpos