<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[wolfSSL - Embedded SSL Library — chunk size in datastream]]></title>
	<link rel="self" href="https://www.wolfssl.com/forums/feed-atom-topic2565.xml" />
	<updated>2026-08-19T16:51:43Z</updated>
	<generator>PunBB</generator>
	<id>https://www.wolfssl.com/forums/topic2565-chunk-size-in-datastream.html</id>
		<entry>
			<title type="html"><![CDATA[Re: chunk size in datastream]]></title>
			<link rel="alternate" href="https://www.wolfssl.com/forums/post8920.html#p8920" />
			<content type="html"><![CDATA[<p>Probably the most simple solution is to send a request&nbsp; with HTTP/1.0 instead of HTTP/1.1. In 1.0 chunking is not supported and a 1.1 client must support chunking. Otherwise the application has to handle the chunks.</p><p>Regards,<br />Bert</p>]]></content>
			<author>
				<name><![CDATA[BerHav]]></name>
				<uri>https://www.wolfssl.com/forums/user4509.html</uri>
			</author>
			<updated>2026-08-19T16:51:43Z</updated>
			<id>https://www.wolfssl.com/forums/post8920.html#p8920</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: chunk size in datastream]]></title>
			<link rel="alternate" href="https://www.wolfssl.com/forums/post8919.html#p8919" />
			<content type="html"><![CDATA[<p>Hello Kareem,<br />Thanks for your quick reply. Unfortunately, I already suspected that I would have to handle this within the application itself; I couldn&#039;t find any information about it.</p><p>The application is for personal use and manages the control logic for solar panels combined with a home battery. This component retrieves electricity market prices to determine whether the battery should be charged from the grid or discharged. The prices are fetched from web-api.tp.entsoe.eu.</p><p>Thanks,<br />Bert</p>]]></content>
			<author>
				<name><![CDATA[BerHav]]></name>
				<uri>https://www.wolfssl.com/forums/user4509.html</uri>
			</author>
			<updated>2026-08-18T19:52:34Z</updated>
			<id>https://www.wolfssl.com/forums/post8919.html#p8919</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: chunk size in datastream]]></title>
			<link rel="alternate" href="https://www.wolfssl.com/forums/post8918.html#p8918" />
			<content type="html"><![CDATA[<p>Hi BerHav,</p><p>It looks like you&#039;re seeing HTTP chunked transfer-encoding.&nbsp; This is coming from a layer higher than what wolfSSL operates at.&nbsp; wolfSSL_read returns the raw decrypted bytes from the connection, it is up to the application to further process these bytes.<br />You will need to parse the size in your application, or you can look into using an HTTP library, for example curl.</p><p>Are you able to share any information about your project?&nbsp; Are you working on a personal or commercial project?</p><p>Thanks,<br />Kareem</p>]]></content>
			<author>
				<name><![CDATA[kareem_wolfssl]]></name>
				<uri>https://www.wolfssl.com/forums/user4055.html</uri>
			</author>
			<updated>2026-08-18T19:25:27Z</updated>
			<id>https://www.wolfssl.com/forums/post8918.html#p8918</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[chunk size in datastream]]></title>
			<link rel="alternate" href="https://www.wolfssl.com/forums/post8917.html#p8917" />
			<content type="html"><![CDATA[<p>Hi there,</p><p>In a server response, the data is transmitted in separate chunks. When processing these data chunks, the size of the next chunk appears interspersed with the data itself. Is this expected behavior? Is there a setting to hide this within the data stream? The application is developed in the Arduino IDE for STM32 using a W5500 Ethernet interface and utilizes wolfSSL 5.8.4.</p><div class="codebox"><pre><code>              &lt;Point&gt;
                &lt;position&gt;45&lt;/position&gt;
                  &lt;price.amount&gt;145.69&lt;/price.amount&gt;
              &lt;/Point&gt;
              &lt;Point&gt;
                &lt;position&gt;46&lt;/position&gt;
         &lt;price.amount&gt;146.02&lt;/price.a
1b70
mount&gt;
              &lt;/Point&gt;
              &lt;Point&gt;
                &lt;position&gt;47&lt;/position&gt;
                  &lt;price.amount&gt;142.13&lt;/price.amount&gt;
              &lt;/Point&gt;</code></pre></div><p>The 0x1b70 is the size of the next chunk. </p><p>The data is read into 256-byte buffers. This part works correctly, but the chunk size appearing in the middle of the stream makes interpretation difficult.</p>]]></content>
			<author>
				<name><![CDATA[BerHav]]></name>
				<uri>https://www.wolfssl.com/forums/user4509.html</uri>
			</author>
			<updated>2026-08-18T18:42:00Z</updated>
			<id>https://www.wolfssl.com/forums/post8917.html#p8917</id>
		</entry>
</feed>
