basic http streaming support (for curl)