I want to evaluate the integral $$I(a, b) = \int_{0}^{\infty}\frac{1}{(1+x^a)(1+x^b)} dx \tag 1$$
where $a, b$ are nonnegative real numbers. I am most interested in integer $a, b$ but would prefer a more general answer.
In this answer to another MathSE question, the $b = 2$ case was addressed and it was stated that $I(a, 2) = \pi/4$. By plugging in some numbers, I found that $I(a, a) = \frac{1}{a}\Gamma \left( \frac{1}{a} \right) \Gamma \left( 2-\frac{1}{a} \right)$ and $I(a, 0) = \frac{1}{a}\Gamma \left( \frac{1}{a} \right) \Gamma \left( 1-\frac{1}{a} \right) = \frac{\pi}{a}\csc \left( \frac{\pi}{a} \right)$. I didn't manage to solve this problem completely, but I'll include the work for the representations I got.
By making the substitution $u = 1/x$, we get $$I(a, b) = \int_0^{\infty} \frac{1}{(1+u^{-a})(1+u^{-b})(u^2)} du = \int_0^{\infty}\frac{u^{a+b-2}}{(1+u^a)(1+u^b)} du \tag 2$$
Now after making the substitution $v = u^a$, we get $$\int_0^{\infty} \frac{(v^{1/a})^{b-1}}{(v+1)(1+(v^{1/a})^b)a} dv = \int_0^{\infty} \frac{v^{(b-1)/a}}{a(v+1)(1+v^{b/a})} dv \tag 3$$
From $(2)$, by making the substitution $v = u^{a+b}$, we get $$\int_0^{\infty} \frac{1}{(a+b)v^{1/(a+b)}(1+v^{a/(a+b)})(1+v^{b/(a+b)})} dv = \int_0^{\infty} \frac{1}{(a+b)v^{1/(a+b)}(1+v^{a/(a+b)}+v^{b/(a+b)}+v)} \tag 4$$
Any help in solving the integral would be appreciated.