Extract method get-hdrs-and-data-lines