-module(prog).
-export([main/0]).
-import(http_uri, [parse/1]).

main() ->
    X = parse("http://e...content-available-to-author-only...e.com:8080/path/to/resource?q1=foo&q2=bar#fragmento"),
    R= io_lib:format("~p",[X]),
	io:fwrite(lists:flatten(R)),
	true.