![]() |
URL string library |
Introduction Screenshots Mailing Lists and IRC Alternative Browsers Special Thanks
FAQ
Download binaries Platforms Compiling Mnemonic Other useful software
Core Message modules Library modules Object modules Coding Guidelines Browse Source Using CVS
Website questions to: |
The `lib-url' library is a small C++ library for manipulations of universal resource locators (urls) as well as http uuencodings (the latter is unsupported at the moment). It follows the specifications as laid out in RFC 1738. In particular, it supports both absolute urls, scheme://username:passwd@host:port/abspath[;param][?query][#fragment]and relative urls, which borrow unknown parts from their referrer, scheme:abspath scheme:relpath
The and then offer the following functionality. You can extract the scheme (`http'), the net-path (`www.mnemonic.org'), the port number (`8000'), and the absolute path (`/bar'). Ditto for all the other supported elements (see above).#include <url/url_string.hh> url_string foo("http://www.mnemonic.org:8000/bar");
For relative urls, the strings should be initialised with two parameters, the second
one being the referring url. In this case, the relative path can be extracted
as well by calling Refer to the header file url_string.hh for the details of member functions.
Password information can be added at any time by calling the
|