Made ping use StringIO for resettable uploads