Hi
I have not heard of HIV passing this way. If the man did have HIV I believe the risk would be very low for this to happen.
Chlamydia could possibly pass to you, but from the type of sex you described this would not be the best way for it to happen. Chlamydia is common, usually does not show any symptoms and is around the fluid at the tip of the penis. I have seen chlamydia pass if someone has penis to vaginal rubbing when the fluid from the tip of penis comes in contact with entrance to the vagina.
Also have a look at our “Know your chances” web page, it provides information on your chances of getting or passing an STI depending on how you are having sex.
Please leave a comment to let us know if this answers your question or if you need more information.
Health Nurse
For other readers, please feel free to leave a comment, or let us know if this was helpful.