I stumbled across this article whilst reading the Guardian
www.theguardian.com

Scientists say mystery of how red wine headaches occur may be solved
Researchers home in on phenolic flavonoids as culprit for headaches that come on soon after a glass or two