added http headers and final parameters