Define make_request method to handle all HTTP requests