Found the requirement for SERVER_NAME.

Seems we need to set the SERVER_NAME parameter so the context knows how
to construct the URL we're requesting.