A chicken infected with gapeworm will cough up the worm eggs, swallow them, and then excrete them in their droppings. When another chicken eats the eggs that were excreted, they, too, become infected.