do we need to create the request object here? can't we just use parse_url on the getTargetUrl string directly? seems like overkill to me - and given that we execute that on every single request, performance does matter.