file stream and http request