HP oligosaccharides shorter than 6-mer did not inhibit infection, indicating that a length of at least 6-mer is required for HP oligosaccharides to significantly inhibit S. pneumoniae corneal infection. Here, HP is linked to infection.