Download Client with HTTP POST

Hi,

 I need to modify the download_client to download the data from our cloud using the http POST method. The way cloud is implemented is that the device needs to specify a couple of properties for the cloud to deliver the right firmware type/version for the device and it requires a POST method. Can you please provide some assistance with that?

Thank you again, you guys have always been great help!

Parents Reply Children
  • Thank you Charlie,

    Tracing the calls here is what I believe should work if you can just verify it:

    (in fota_download.c) -> download_client_start (download_client.c) -> request_send -> http_get_request_send (in http.c).

    the main modification will be in the http.c file where I will introduce a new functions (http_post_request_send) that is a copy of the http_get_request_send but replace the GET_HTTPS_TEMPLATE with a POST_HTTPS_TEMPLATE that that approriate api and fileds.

    the mods in the download_client will be to support and pass on the right information to this new function.

    Let me know if you think i will face any issues. Once I am done, I can share the files here for anyone else to use.

    Regards

    Noaman

Related