replace ping with curl.