Midified pull request from @kwang
add ability to handle combined content-length header.
support parsing quoted string.
Avoid using regular expressions
This looks good, two small things.
You should probably remove -compile(export_all)
why not use string:strip instead of the trim_and_reverse/2 function?