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. Xmlhttprequest: open with username and password
Forum Updated to NodeBB v4.3 + New Features

Xmlhttprequest: open with username and password

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.2k 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.
  • O Offline
    O Offline
    olheem
    wrote on last edited by
    #1

    Hi!

    I have the following code:
    @
    var request = new XMLHttpRequest();
    request.open("GET", "https://domain:port/api.php", true, "user", "password");
    @

    There is a .htaccess file on the server.

    Unfortunately my code does not work. request.status is 0. I am using Qt 5.3.

    When I open the address in a browser everything works fine.

    Can anybody help me, please.

    Best regards,
    Oliver.

    1 Reply Last reply
    0

    • Login

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