Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 4 Support (Qt 6) › DownloadableResource with HTTP Post

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #25381

    nks (baumemo)

    Hi Felgo Team,

    I have a question about the use of QML DownloadableResource.

    We would like to use this really nice component with a http(s) POST (containing some json payload for example) instead of a GET.

    Is there an easy way to get this done or is it planed to add such a feature?!

    Best regards

    #25383

    Günther
    Felgo Team
    #25385

    nks (baumemo)

    I’m not sure about the detailed behavior of both components. I’m pretty sure that we used DownloadableRessource for a special reason :-/. I’m a bit afraid to switch over to HttpRequest.

    #25387

    Günther
    Felgo Team

    Hi,

    You do not have to remove the usage of DownloadableResource. The DownloadableResource is specifically designed to download and optionally extract files from a remote host. This involves processing and storing the binary data that is received.

    The HttpRequest only covers an individual network request and handling the data is up to you. It would be cumbersome to implement your own file download and process binary data in QML/JS. For this use-case the DownloadableResource is here.

    So you can use HttpRequest only for the POST request if that is what you need. It does not matter where the data you post comes from and if it was previously downloaded using DownloadableResource. In either case, you would create a POST request with the HttpRequest item.

    Best,
    Günther

Viewing 4 posts - 1 through 4 (of 4 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded