Green’s Dictionary of Slang

webfoot n.

[the infantryman’s contact with (damp) ground]

(US) an infantryman.

[US]B.W. Duke Hist. Morgan’s Cavalry 400: When the ‘webfeet’ called us ‘buttermilk rangers’, we did not get angry with them [OED].
(con. 1861-5) S.R. Watkins Co. Aytch 4: An humble private in the rear rank in an infantry regiment, commonly called a ‘webfoot’.