There is no single cure because there is no known cause and symptoms often vary dramatically between patients. It has been found that over the counter pain medications have no effect on the pain from these types of headaches.
Instead, oxygen inhalation is the first given treatment in a clinical setting. Natural remedies include magnesium supplements, feverfew, and melatonin. Hot showers have been shown to work for a small percentage of patients as well.
Preventive solutions are often suggested, triggers to avoid include nitroglycerin, alcohol, excessive heat, and sometimes specific foods depending on the individual.