call process_request_headers before converting to char lists