Add a callback when request the txt from server.