test code for getting request headers