Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to use QML WebSocket with authorization/cookie Headers
Forum Updated to NodeBB v4.3 + New Features

How to use QML WebSocket with authorization/cookie Headers

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 860 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MehmetM Offline
    MehmetM Offline
    Mehmet
    wrote on last edited by
    #1

    Hi everyone,

    currently I need a solution in QML to connect to a WebSocket server which want read an authorization token from the header of the HTML protocol. But I really didn't found a way to insert this token into the QML WebSocket (QtWebSockets)

    The example in the link below is only an example to connect to a WebSocket service which allow all connections without an authorization token in the headers.

    http://doc.qt.io/qt-5/qtwebsockets-qmlwebsocketclient-qml-qmlwebsocketclient-main-qml.html

    Is this possible with the QML WebSocket, do anyone know a workaround or another solution to achieve this fastly?

    Thanks a lot for any help!

    Mehmet

    1 Reply Last reply
    1

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved