Issue with HTTPREAD Missing Data in Chunks After HTTPACTION Response
Posted: Mon Jun 09, 2025 6:31 am
Hi everyone,
(Am working on SIMA7670C GSM Modem)
I'm facing an issue while downloading a file from a server using HTTP commands. Here's the situation:
-> I send the HTTPACTION command, and it responds correctly with a 200 status and the expected file size (e.g., 2000 bytes).
-> Then, I use the HTTPREAD command to read the data in chunks.
-> However, when I read the file in two chunks (e.g., first 1024 bytes, then the next 1024), the data returned includes the beginning and end of the file, but some data in the middle is missing.
It seems like the chunks are not being read sequentially or there's a gap between them. Has anyone experienced this before? Could it be an issue with the offset or buffer handling?
Any suggestions or fixes would be greatly appreciated!
Thanks in advance.
(Am working on SIMA7670C GSM Modem)
I'm facing an issue while downloading a file from a server using HTTP commands. Here's the situation:
-> I send the HTTPACTION command, and it responds correctly with a 200 status and the expected file size (e.g., 2000 bytes).
-> Then, I use the HTTPREAD command to read the data in chunks.
-> However, when I read the file in two chunks (e.g., first 1024 bytes, then the next 1024), the data returned includes the beginning and end of the file, but some data in the middle is missing.
It seems like the chunks are not being read sequentially or there's a gap between them. Has anyone experienced this before? Could it be an issue with the offset or buffer handling?
Any suggestions or fixes would be greatly appreciated!
Thanks in advance.