use stream-buffers to simulate http request