Are you sure you are dehydrated? It seems you are peeing out excess water. Could it be the headache is from something else, like an electrolyte imbalance. Sometimes people hydrate too much and their electrolytes go out of whack.