Thanks for the query to H.C.M. Forum.
Cough with blood , perhaps expectoration ( phlegm) with blood may present.
May be due to throat infection
if in acute form.
If in chronic may be due to , Tuberculosis
Lung abscess, Bronchiectasis
Headache in this type of situation may be due above mentioned diseases or may be due to fever.
Excessive cough also develops severe headache
due to strain of cough.
Consult a physician and get his opinion, this will help.