Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 6 months ago.
I think there is a bug in the Htp client
When I try to use it, is runs, but it just dont download anything:
[DBG HTCL 331] Reading headers [DBG HTCL 374] Read header : Server: Apache [DBG HTCL 374] Read header : Location: http://www.xxxx.dk/Prog_LPC1768.bin [INF HTCL 392] Following redirect[0] to [http://www.xxxx.dk/Prog_LPC1768.bin] [DBG HTCL 412] Receiving data [DBG HTCL 461] Retrieving 0 bytes [INF HTCL 464] write 207,0: Location: http://www.xxxx.dk/Prog_LPC1768.bin [INF HTfi 40] write(0,Location: http://www.xxxx.dk/Prog_LPC1768.bin) m_len(268443897), chunk 0 [DBG HTCL 502] Completed HTTP transaction [INF SWup 119] Remove bin files excluding {Prog_01.bin} [INF SWup 282] Updating stored version number.
There is no errorcode, just no data. I have tested the webserver just with a browser, and it gets the file.
Question relating to:

1 Answer
10 years, 6 months ago.
Hi Gert,
Let me see if I can help.
[A small suggestion first- surround the "listing" with <<code>> and <</code>>
to make it easier to read]
From your report, the thing that caught my eye first is m_len(268443897). What I see on one of my systems is 133724 (which is the size of the binary image to download). 268Mbyte is too large for an mbed module, but I don't know what caused such a large number.
I'm going to spend some of the next hour updating the libraries to the latest mbed, rtos and so on and then see if I can reproduce this extraordinary number. I hope to post a follow up in a while, but in the meantime, you might double-check the bin file on your server to see if it is a more realistic size, or if perhaps it was mangled somehow.
Gert,
I updated all the libraries to the latest (mbed, rtos, ethernet and so forth). In my "test" program, I also removed several extraneous things to simplify it down. I added a link to that test program on the SWUpdate home page, and here's a direct link to that demo as PUB_SWUpdate.
If you give this a go and it still does not work, I'd like to see more detail in the console debug report (which you'll have to turn on debug per the instructions on those pages).
posted by 08 Mar 2015