Trim http data to 1024 characters