returning the http response rather than printing it in the send_request method