Treatment of headache and seizure