I remember doing that too! It worked great.At my doctor's recommendation, the minute I felt one coming on I took two Tylenol and drank a Coke. A real Coke, not diet or caffeine free, a real one. Worked like a charm. I was worried about the caffeine, but my OBGYN assured me this was okay.
Good luck!