10 years, 11 months ago.

How to download a file with latest networking stack?

I am struggling a bit to figure this out.

I am trying to download a file from a web server to the mbed. I am using the latest networking libraries and the examples of HTTPFile do not work on it and am not skilled enough (yet) to port it over.

Does anyone have any examples of downloading and saving a file to local storage with the latest networking stack?

Thanks!

1 Answer

10 years, 6 months ago.

This is a bit late but found your post when trying to do a similar thing. I have written an implementation of HTTPFile that works with the latest network stack.

link http://mbed.org/users/ollie8/code/HTTPClient/wiki/Homepage

Current only supports get and has only been tested with binary and text files, text files do not work. I only need it to fetch binary files so not an issue for me. I you do use it and want it to support text files let me know and i'll look into it.