validate uri and method, skip when not valid