I dislike the SWF (Salt-Water-Flush) because it is OK in theory but potentially dangerous in practice.
Your headache is due to the fact that you have absorbed too much salt, due to osmosis. Drink small amounts of plain water at regular intervals. It could take days for you to recover.