obtaining h1b visa stamp in a 3rd country


I have a valid H1B visa which is expiring soon. My petition is valid for one more year. Last time in delhi, i had a security check which took ~3 weeks. I now need to renew my visa - is it ok do it in a US consulate in a european country (where i will be going for 1 month of travel?