send header length and frame length