setHeader befor sending test