Refactor part of the http request method to ensure data in the url is built properly in certain situations.