No cure except rehydration. Brain shrinks when dehydrated causes the headache. Good advice above about pint of water before bed
The water thing does work, but i have hardly ever done it, when i get in pissed, i find it hard to remember to get my self a pint of water and a couple of tablets