Parser re-implemented on the model the one found on Surf Http Library.