Update httplib support read data from response buffer, add some testcases