improve new line function and add some http tests
Merge pull request #4 from bopoda/master_improve_new_line_funct

improve new line function and add some http tests