int URL_parse_selector(char *selector, char *type, char **path);