Use curl directly rather than through shell
Use retry on GET