How to stream large http response to disk reliably
saket chaudhary
saketcmf@REDACTED
Thu Apr 23 18:56:00 CEST 2020
I'm using OTP-22.1 and noticed `httpc:request(get, {URL, []}, [], [{stream,
FilePath}])` returns `{ok, saved_to_file}` even when the remote web-service
dies midway while streaming the response. I checked the content on the disk
was missing a whole bunch of data. Is this a known quirk and expected?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20200423/884cf694/attachment.htm>
More information about the erlang-questions
mailing list