Is it permissible for a wife to boycott (not to attend to his different needs) her husband?
It isn`t permissible for the woman to boycott her husband unless he is the reason behind that, and it is recommended that both spouses seek the advice of righteous people to make reconciliation.
Is it permissible for someone who has forgotten to mention the supplication pertaining to answering the call of nature to say it while in the toilet?
It is disliked for a Muslim to mention Allah while in the toilet, but he/she may recall the supplication in his/her head without uttering it; that is in case he/she had forgotten mentioning it before entering the toilet.
What is the ruling on the cessation of blood after (40) days from delivery, but later continued sporadically during two days of Ramadan?
Once postpartum bleeding (Nifas) ceases, and the woman is certain that it won`t reoccur, then she becomes ritually pure and so she is free to make Ghusl (purificatory bath), pray, and fast. If the bleeding reoccurs before fifteen days from its cessation, and before the end of (60) days after delivery, then the ruling on postpartum bleeding is effective, and her fasting and prayer are null and void, thus she must make up the fasting that she missed and not the prayer during those particular days.
Who is obligated to fast?
The one obligated to fast is the Muslim who is of sound mind, mature, capable of fasting, and free from obstacles such as menstruation or postpartum bleeding. And Allah Knows Best.