I very, very rarely get headaches, but any I've had over the past few years have been easily cured with a cup of coffee.
This is probably not a good solution for those headaches caused by stress, as you pay for the capillary dilation with elevated cortisone.