Use cURL by default; fallback to get_headers()