Use parseurl to parse the URL from request