Avoid using deprecated HTTP client intferface. Don't add uri parameter to request if none supplied.