Primary as CURL, fallback to file get contents