10 #include "protocol/uri.h"
11 #include "util/string.h"
14 main(int argc
, char **argv
)
16 /* FIXME: As more protocol tests are added this could start
17 * taking arguments like --normalize-uri=<arg> etc. */
19 fprintf(stdout
, "%s\n", normalize_uri(NULL
, argv
[1]));
20 } else if (argc
== 3) {
21 struct uri
*translated
= get_translated_uri(argv
[1], argv
[2]);
22 if (translated
== NULL
)
24 fprintf(stdout
, "%s\n", struri(translated
));