Here is a scan from Ramanujan's 1917 paper of the generalization referred to the in OP (equations 5 and 7). The reference in Messenger of Mathematics is a journal that no longer exists. Only the volumes through 1901 are freely accessible online.
Carlo Beenakker
- 188.3k
- 18
- 448
- 651