Please clearly state ur problem as ur problem seems to be headache but as of now it seems it is swelling in legs. Also ur talking medicine for headache so are you better? You have not mentioned ur medication too.
Swelling you mentioned has started with headache or after u started medication?
Do u smoke or drink?
Any exercise u do?
Use sleep ok?
Next Steps
My suggestion is to avoid electronic devices and try relaxation by listening to music or just conversation with someone. U need some blood tests if swelling is there.
Health Tips
If ur problem persists then consult.
Thanks