Allow following of redirects via API

Bug: 50964
Change-Id: If6fb5856c4f8bcd32ad51dcccec491894ff4bc9f