Skip to content
  • 0 Votes
    6 Posts
    1k Views
    R
    After playing around using postman I found the issue. When sending a Bearer: "" or Bearer: "xxxxxx" token, the server returns "Authentication Required". But when sending no Bearer token or an empty Bearer: it works fine. So when logging in; no token must be supplied else it tries to authenticate against that token instead of correctly generating a new one provided you submitted valid credentials in the JSON body. Seems a bit odd to me, but ok.
  • 0 Votes
    7 Posts
    1k Views
    Guy GizmoG
    Forgive me for bumping an old thread, but I too am interested in an answer to this question. As things stand I'm going to commit to using out-of-date APIs in order to accomplish this. But it'd be nice if there were an officially supported and modern way to make socket connections and HTTP / HTTPS requests using a specific network interface.
  • 0 Votes
    1 Posts
    339 Views
    No one has replied
  • 0 Votes
    12 Posts
    3k Views
    SGaistS
    Not in the past few days, IIRC, OpenSSL 1.1 support started with 5.10 and the ore-built package switched to it during the 5.12 release cycle.
  • HTTPS POST performance

    Unsolved General and Desktop qtnetwork https post https performance post
    5
    0 Votes
    5 Posts
    2k Views
    W
    @SGaist said in HTTPS POST performance: Hi and welcome to devnet, @wrekler said in HTTPS POST performance: How relevant is knowing the server? It is relevant because: It might be sleeping if for example it's an heroku free tier that hasn't been used for some times. Therefore the first query will have to wait for the server to awaken thus it will be longer. It might require authentication which takes some time on first query to setup and allow to process. It might need to query some slow to start resource to answer your question etc. Oh, I see. Well it is not a my server, it is a thirdy party server, so I can't answer to all that question. All I know is: It is hosted on akamai.com Acqtually it require some authentication data that I give with POST data So I think I can't optimize requests server side, all can I do is caching DNS/TCP/SSL requests but I don't know if Qt 5.11.2 actually implements all that suggestions
  • HTTP

    Solved General and Desktop http get post server - client
    13
    0 Votes
    13 Posts
    4k Views
    Pranit PatilP
    @Prince_0912 Thank you for your guidlines
  • http post data encoding

    General and Desktop qnetworkaccessm qurl post
    4
    0 Votes
    4 Posts
    4k Views
    Paul ColbyP
    @4j1th said: Hi @Paul-Colby , by using the first method how can I access the file (in server), is it works as a file uploading method ? It depends on your server. What language is your server written with? (Assuming you're POSTing to your own server, and not some third-party API). For example, the server was running PHP, you could do something like: $data = json_decode(file_get_contents('php://input'), true); // save $data to a file somewhere. In that case, you wouldn't need to use WWW form encoding.
  • [resolved]Post a file with qml

    QtWebEngine post webengineview upload
    4
    0 Votes
    4 Posts
    3k Views
    M
    I use this code to resolve my problem : Rectangle { width: (tabView.width)-30 Layout.preferredHeight: 400 z:1 WebEngineView { id: webview url: "http://google.com" anchors.fill: parent } }
  • Qt webserver with POST support

    General and Desktop webserver post
    8
    0 Votes
    8 Posts
    4k Views
    X
    I had no idea about the qt-pods. Thank you for the handy information. It's incredible how I am learning things every time I check this forum XD