well you can do the medicine. if not then i heard drinking Gatorade? never did it, just read it.
also, i found this out on my own. breath very very slowly. like hold your breath, and then slowly breath out and in. after a while your lungs will hurt but then the headache goes away. i was just bored once when i got a headache and i always wondered how come when you go to bed with one you wake up without one. then i remembered you breath slowly when you sleep, so i was like lemme try, why not? and after a few mins it seriously went away :)
Flamas Doritos ! XDD does the charm for me, but you probably don't have them next to you lol. So my 2nd option would be... Something spicy ? :0 if not then my 3rd option would be eat/drink something with caffeine even though it might be the best thing, the taste could get rid of it, if that doesn't work, I don't know what does ! Lol