What causes bad headaches everyday and throwing up?

Needs Evaluation. A constant daily headache with vomiting could be symptoms of a serious condition. You need to be evaluated asap. Expect the doctor to look into your eyes (maybe after dilating them) or possibly having a ct of your head. With a complete history and physical exam, these may not need to be done. Could be status migrainosus or a symptoms of increased intracranial pressure, all of which need treatment.
Migraines. You could be having migraines or chronic headaches. You could consult a neurologist or a headache specialist or a pain physician.