Healthcare experts believe that you can get infected with H. pylori if you eat food or drink water that contains contaminated human stool.  It is also transmitted directly via contact with infected human stool, vomit, or saliva. For example, you can catch it when you’re exposed to family members with H. pylori.