change the fetchhttpurl function to include the query string or a url