Headaches During Water Fasting

I am new to this site but not new to water fasting; however, the last time a fasted for 15 days, the fast went with such bad headache that I needed to stop. I was in agony; however, felt great once started to eat and had painkill