Replacing cat with curl