www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - std.net.curl.HTTP: can't download more than 3.6K

reply Jeremy <jtbx disroot.org> writes:
Hello, I'm new to D and the `std.net.curl` library. I'm using the 
`HTTP` struct because I need to set headers for an API, and most 
of the time, I can only download 3.6 kilobytes at a time. Would 
this be a problem with the library not following redirects or 
something else? I'm not really sure what it could be, so could 
someone help me with this?
Mar 19 2023
parent Jeremy <jtbx disroot.org> writes:
Nevermind, it was my fault. I fixed my problem by appending the 
received buffer to my data buffer instead of overwriting my data 
buffer each time.
Mar 19 2023