Thank you very much for contacting healthcare magic.
Constipation cause headache problem. You don't mention which herbal products you take.
For constipation problem solution you have to modify your diet .....
Drink more water per day.
Avoid alcohol drinking and
smoking.
Take warm water drinking every day at morning.
High fiber diet helpful for proper digestion.
Eat fresh fruits and green vegetables.
Avoid gaseous foods like cabbage, cauliflower, broccoli, turnips ....etc.
Bulk forming agent like
psyllium can use for constipation.
Avoid stressful condition.
Do some exercises regularly.
If you have problem of constipation for long time than consent a gastroenterologist for further diagnosis. You have digestive problem for that no need for
liver test.
I hope my guidance is helpful to you.
Thank you very much.