Trurl

trurl is (I think) maintained by Daniel Stenberg (creator, maintainer of curl).

It provides getters and setters for the components of a url.
The components are: scheme, user, password, options, host, port, path, query, fragment, zoneid.