get content_(type|length) from headers