Headache until I have a bowel movement, but after bm, headache is gone. Strange?

It happens. Sometimes you can have a nervous system response triggered by the urge to have a bowel movement that can cause temporary headaches, nausea, or dizziness. However, if the headache is severe enough to affect daily activities or if you have other symptoms, please see a doctor to make sure you don't have a serious medical condition.