While browsing through some letters of Ramanujan to G. H. Hardy I came across these two formulas (which are as mysterious as any other formula of Ramanujan): $$4\int_{0}^{\infty}\frac{xe^{-x\sqrt{5}}}{\cosh x}\,dx = \cfrac{1}{1+}\cfrac{1^{2}}{1+}\cfrac{1^{2}}{1+}\cfrac{2^{2}}{1+}\cfrac{2^{2}}{1+}\cfrac{3^{2}}{1+}\cfrac{3^{2}}{1+}\cdots\tag{1}$$ $$2\int_{0}^{\infty}\frac{x^{2}e^{-x\sqrt{3}}}{\sinh x}\,dx = \cfrac{1}{1+}\cfrac{1^{3}}{1+}\cfrac{1^{3}}{3+}\cfrac{2^{3}}{1+}\cfrac{2^{3}}{5+}\cfrac{3^{3}}{1+}\cfrac{3^{3}}{7+}\cdots\tag{2}$$ From these it appears that Ramanujan had general formulas for the integrals $$I_{m, n} = \int_{0}^{\infty}\frac{x^{m}e^{-x\sqrt{n}}}{\cosh x}\,dx,\,J_{m, n} = \int_{0}^{\infty}\frac{x^{m}e^{-x\sqrt{n}}}{\sinh x}\,dx\tag{3}$$ and for some values of $m, n$ he was able to express these as continued fractions.
I am totally perplexed by these formulas. Do we have any proofs of these or perhaps any reference which treats the integrals $I_{m, n}, J_{m, n}$?
Just for clarity the notation $$\cfrac{a_{1}}{b_{1}+}\cfrac{a_{2}}{b_{2}+}\cfrac{a_{3}}{b_{3}+}\cdots$$ consumes less space in typing compared to the more cumbersome but easier to understand continued fraction $$\cfrac{a_{1}}{b_{1} + \cfrac{a_{2}}{b_{2} + \cfrac{a_{3}}{b_{3} + \cdots}}}$$

