Added -L switch to curl commands