http and stream