Hi, I’m trying to extract a num from a string. This string is in fact
some number of headers separated by \r\n or \n. for now I just need to
extract the value of “Content-Length” (case insensitive) header.
I do the following:
In case the “Content-Length” header exist but has empty value I get 0
with the above code (that’s what I need in fact).
Is there any way faster to do the same? any help?
Thanks a lot.