I'm not sure how or why, what I found that works for me is when I have one of those blinding headaches, I apply an ointment like Deepheat or any ointment used for sports muscle relaxation around my forehead from ear-line to ear-line, switch off all electric gadgets around me (yes, including my cellphone) and lie down in a dark room for about an hour to 2 hours. It works like magic :)