Realistically, headache can only be cured when you know the exact root cause of it, anything done to arrest it's just experiementing, because we have numerous types of headache. Basically, apart from the cause of headache, we have certain triggers of it. And these triggers could be health related conditions such as dehydration, stress, anxiety, depression, etc, or environmental pollution such as smoke.
Personally, I've discovered that smoke usually trigger headache, and this happens whenever I am around someone smoking tobacco. This type of headache tend to be temporary. But for those caused by stress or anxiety are long lasting, which could result into migraine.
Stress is main trigger of headache in the sense that whenever you are stressed, your brain is deprived of vital chemicals needed for it to function appropriately. For this type of headache to be cured, ensure you rest sufficiently that's after eating balanced diet. Consume fruits and vegetables.
Dehydration is also another minor trigger of headache. Whenever your body is short of water, the brain is greatly affected, which would in turn lead to headache. Drink a lot of water during the day to keep this type of headache at bay.