test upload with curl