send headers and default content_(type|length)