These foods have been identified as headache and migraine trigger
First the list then the explanation below:

Peanuts, peanut butter, other nuts and seeds                       Pizza (because of the cheese(s))
Potato chip products                                                          Chicken livers and other organ meats
Smoked or dried fish
Sourdough bread, fresh baked yeast goods (donuts, cakes, homemade breads, and rolls)
Bread, crackers, and desserts containing cheese
Certain fresh fruits including ripe bananas, citrus fruits, papaya, red plums, raspberries, kiwi, pineapple
Dried fruits (figs, raisins, dates)
Soups made from meat extracts or bouillon (not homemade broth)
Cultured dairy products, sour cream, buttermilk, yogurt
Caffeine found in chocolate and cocoa; beverages such as coffee,
tea and colas; also found in certain medications (Excedrin)
Aspartame and other artificial sweeteners (sweet & low, equal).

Now looking at the list above I’m going to talk about the foods that I eat the most Chocolate, Cheese, Peanut Butter Bananas, Raspberries, Pizza, Coffee, Tea.  I eat these items in combination to help me lose weight on top of that they taste so good.  I don't know if you girls have trouble stopping eating Chocolate (Snicker, M&M, Twix, Reese’s Kit Kat).  I can go on for a long time and I want you to remember the list not to eat them.  Looking at the list I think you should cut down as much as possible and look for other Chocolate alternatives.  But I also love Peanuts or Peanut Butter & Caramel.  I haven’t anything that can replace Chocolate, so what I do is drink lots of water or try to avoid it as much as possible.  Whatever you do don't eat anything before you go to sleep especially Chocolate or anything that contains Chocolate.  I did this analysis where I would have Chocolate chip cookies before bed and I would wake up 3 hours later with a massive headache.  So the Caffeine in the Chocolate is what trigger my headaches. 

I tend to eat peanut butter & grape, blueberry or strawberry jam to stay on a budget and help me stay fill so I don't eat so much junk.  But I found that if I drink hot water with ginger I won’t get a headache I have to drink about 2 cups for every 1 sandwich and I was good to go + I the ginger also help lose weight don't know how but with my body I don't but on any excess fat.

This list below helps lessen headache and helps you lose weight too..

Peppermint                                      Cayenne pepper
Ginger (more on ginger here),           Fish and fish oil
Oatmeal                                           Wheat                                                 
Foods rich in magnesium, such as spinach &
Foods rich in calcium such as spinach, broccoli and kale

Water                 this is the cheapest and may be most reliable food to cure headache. I drink lots of water hot mostly because it takes the body some time to process it to cold then to oxygen.

Ginkgo biloba     it is a medicinal plant. The leaves and the seeds contain some flavonoid glycosides. 

Banana               if you suffer from constant headache, you should include a banana in your breakfast every day. High magnesium concentration in bananas will help is successful cure of headache.

Lemonade           a glass of lemonade or fresh lime juice with high concentration of salt can cure severe headache almost instantly. Intake of salt is not generally persuaded. But in case of headache, it acts like magic.

Coffee                a strong cup of coffee can help you if you are suffering from severe headache. 

Tea                     tea contains tannin. For the same reason, a strong cup of tea will also cure headache.

Apple                 denuded and seed free pieces of apples, each morning in your breakfast will definitely cure stress related headache. Apples contain bioflavonoids which help in reduction of blood pressure and thus reducing the incidence of headache.

Black pepper      either in powdered form or mixed with vegetables, it can cure headache. Black pepper contains capsaicin and it can increase the threshold level for headache.

Infusion drinks    herbal infusion drink can also do wonder. Mix some basil leaves and ginger pieces in boiling water. Let it boil for 5-7 minutes. Sift the water into a cup. Add 1 tsp of honey. Drink it warm. You will feel better. Antioxidants, selenium, magnesium and vitamins will help your body to rejuvenate instantly.

Milk                   warm milk has a soothing effect over our nervous system. For a nagging headache, you can take a glassful of milk whether hot or cold with do the trick.

If you have a really bad headache I would not recommend taking more caffeine you need to get some sleep to help relieve the pressure I would suggest sleep or staying in a shower with steam and add some peppermint oil or fresh or even dry peppermint and sit for 5-10 minutes to open up the passages and sooth away the pressure. If you have music handy play rain forest music with bird chipping and just think of nothing just relax.