Recombinant hemagglutinin glycoproteins provide insight into binding to host cells by H5 influenza viruses in wild and domestic birds.