parametrize variables and add http headers