Fix header and footer missing on http post