How conter content length on post data

how to count content length on post data to set content -length on header ?

You don’t have to include the content length in the headers because OB2 does that automatically. However, if you need to know how to do it, just put your Post Data content in the length function block.

Here is an example:

BLOCK:ConstantString
LABEL:POSTDATA
  value = "How conter content length on post data"
  => VAR @POSTDATA
ENDBLOCK

BLOCK:Length
LABEL:LENGTH
  input = $"<POSTDATA>"
  => VAR @LENGTH
ENDBLOCK

Result:
image