If you are diagnosed with chlamydia, your doctor will prescribe oral antibiotics. A single dose of azithromycin or taking doxycycline twice daily for 7 to 14 days are the most common treatments and are the same for those with or without HIV. Penicillin is the preferred treatment for syphilis.