Feature/json request

When is $_SERVER not setup?