You can test for gonorrhea, chlamydia, and NGU at a week.
Test for syphilis at 6 weeks, and herpes at 4 months (many develop antibodies sooner, and will therefore test positive sooner, but this varies from person to person).
However, none of this is sounding like an std.
Follow up with your doctor regarding the headaches if they are not responding to meds.
Aj
But what are the timelines to get tested for STDs and HIV since i rather get tested and give me some reassurance. HIV is three months but what about the STD testing? I've been getting headaches for the whole day ever since my flu and after taking tylenol, the headaches won't go away.
If you had protected sex, and then a handjob, you can't get HIV.
Herpes and HPV sores/bumps wouldn't typically appear on the foreskin - that sounds like a fungal infection to me.
AJ
would i be in any risk of STD/STI risk??
The risk of contracting HIV from your experience seems very low. The bumps can just be irritation (please provide more details); but they wouldn't be an indication of HIV. Don't worry so much, it's important to get tested to make sure you don't have anything, and if you do, get treated accordingly.
Not sleeping and not eating is only going to make your flu worse and will contribute to your worries. You need to rest and eat so your body remains strong and can fight off the flu virus, so you can start feeling better.
If you have any more questions or have more details, feel free to post back.