It is normal to have a headache after a bad night’s sleep, because the brain does not get enough rest, so it leads to brain nerve dysfunction and causes headaches and dizziness. You should avoid excessive stress and strain, eat a light diet, avoid spicy and stimulating food, and eat more fresh vegetables and fruits, which is more beneficial to your health. For the original neurological headache, if the long-term poor sleep will also lead to trigger the onset of headache, headache can be symptomatic oral medicine like Zhengtian pill, Tianshu tablets, Danzhen headache capsule for mediation; if for poor sleep, you can also take oral eszopiclone, diazepam, dexrazoxane these sleeping pills to improve insomnia, headache can be relieved.