Hey, I was wondering if anyone could help me with the following integration:

integrate 1/(1+tcosx) wrt x from 0 to pi. I know you have to make the substitution u=tan(x/2), but I've been trying for ages and can't seem to get the answer. =(

Thanks in advance!!