hits an endpoint and exits 1 for failure, 0 for success