backport from trunk (rev #9497)
- re-work of parse_hname2() (function that parses the name of headers) for fixing:
- do not accept spaces in the the name of the headers (not RFC compliant)
- do not include trailing spaces (between name and : separator) in the name (this affects detection of non-statdart headers - like "Foo" versus "Foo "
- buffer overflow when you have a non-standard header that are a prefix of a standard hdr (like "Content-L" versus "Content-Length") - this may leas to scaning entire memory space of the processs and even overflowing it.
- small various optimization in looking for the end of header name (like "From" versus "fromfoo")