<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Download client library</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118298/download-client-library</link><description>Hi, 
 I am using download client for downloading a file. 
 I am using download_client_get and get fragments in callback. 
 When the file requested is short in the callback I have the received buffer 
 without any headers, while when the file is big, 1M</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Jan 2025 12:35:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118298/download-client-library" /><item><title>RE: Download client library</title><link>https://devzone.nordicsemi.com/thread/519754?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 12:35:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78b84347-9eaf-4b70-9194-2f3f41a0fa14</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;When the file requested is short in the callback I have the received buffer&lt;/p&gt;
&lt;p&gt;without any headers, while when the file is big, 1M for example, every chunk&lt;/p&gt;
&lt;p&gt;has an http header.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Is the issue you&amp;#39;re describing here the range-request feature?&lt;/p&gt;
&lt;p&gt;This is default on, which allows a download to be resumed in case of network goes down.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This can be disabled by setting CONFIG_DOWNLOAD_CLIENT_RANGE_REQUESTS=n&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you attach a log showing the behavior in question?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>