<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <blockquote type="cite"><b style="color: rgb(0, 0, 0); font-family:
        "Times New Roman"; font-size: medium; font-style:
        normal; font-variant-ligatures: normal; font-variant-caps:
        normal; letter-spacing: normal; orphans: 2; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        text-decoration-thickness: initial; text-decoration-style:
        initial; text-decoration-color: initial;">Bang Pham Huu</b><span
        style="color: rgb(0, 0, 0); font-family: "Times New
        Roman"; font-size: medium; font-style: normal;
        font-variant-ligatures: normal; font-variant-caps: normal;
        font-weight: 400; letter-spacing: normal; orphans: 2;
        text-align: start; text-indent: 0px; text-transform: none;
        white-space: normal; widows: 2; word-spacing: 0px;
        -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
        255); text-decoration-thickness: initial; text-decoration-style:
        initial; text-decoration-color: initial; display: inline
        !important; float: none;"><span> </span></span><a
href="mailto:qgis-user%40lists.osgeo.org?Subject=Re%3A%20%5BQgis-user%5D%20QGIS%20WMS%20GetMap%20requests%20failed%20with%20%22Host%20requires%2C%0A%20authentication%22%2C%20but%20not%20WMS%20GetCapabilities%3F&In-Reply-To=%3Cedae5778-a66b-ea40-3e8d-6e626d06cc1e%40jacobs-university.de%3E"
        title="[Qgis-user] QGIS WMS GetMap requests failed with
        "Host requires, authentication", but not WMS
        GetCapabilities?" style="font-family: "Times New
        Roman"; font-size: medium; font-style: normal;
        font-variant-ligatures: normal; font-variant-caps: normal;
        font-weight: 400; letter-spacing: normal; orphans: 2;
        text-align: start; text-indent: 0px; text-transform: none;
        white-space: normal; widows: 2; word-spacing: 0px;
        -webkit-text-stroke-width: 0px;">b.phamhuu at
        jacobs-university.de</a><br style="color: rgb(0, 0, 0);
        font-family: "Times New Roman"; font-size: medium;
        font-style: normal; font-variant-ligatures: normal;
        font-variant-caps: normal; font-weight: 400; letter-spacing:
        normal; orphans: 2; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 2;
        word-spacing: 0px; -webkit-text-stroke-width: 0px;
        text-decoration-thickness: initial; text-decoration-style:
        initial; text-decoration-color: initial;">
      <i style="color: rgb(0, 0, 0); font-family: "Times New
        Roman"; font-size: medium; font-variant-ligatures: normal;
        font-variant-caps: normal; font-weight: 400; letter-spacing:
        normal; orphans: 2; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 2;
        word-spacing: 0px; -webkit-text-stroke-width: 0px;
        text-decoration-thickness: initial; text-decoration-style:
        initial; text-decoration-color: initial;">Mon Sep 26 23:24:10
        PDT 2022</i><span style="color: rgb(0, 0, 0); font-family:
        "Times New Roman"; font-size: medium; font-style:
        normal; font-variant-ligatures: normal; font-variant-caps:
        normal; font-weight: 400; letter-spacing: normal; orphans: 2;
        text-align: start; text-indent: 0px; text-transform: none;
        white-space: normal; widows: 2; word-spacing: 0px;
        -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
        255); text-decoration-thickness: initial; text-decoration-style:
        initial; text-decoration-color: initial; display: inline
        !important; float: none;"></span>
      <hr style="color: rgb(0, 0, 0); font-family: "Times New
        Roman"; font-size: medium; font-style: normal;
        font-variant-ligatures: normal; font-variant-caps: normal;
        font-weight: 400; letter-spacing: normal; orphans: 2;
        text-align: start; text-indent: 0px; text-transform: none;
        white-space: normal; widows: 2; word-spacing: 0px;
        -webkit-text-stroke-width: 0px; text-decoration-thickness:
        initial; text-decoration-style: initial; text-decoration-color:
        initial;">
      <pre style="white-space: pre-wrap; color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"> I've tried to connect QGIS version 2 and 3 with a WMS service endpoint
 protected with basic authentication.

 The strange thing is, it can send WMS GetCapabilities without problem
 (with username and password given in the QIGS WMS login form).
</pre>
    </blockquote>
    <br>
    Hi Bang Pham Huu ,<br>
    you may be able to check what's going wrong using the
    "Debugging/Development Tools" panel [1].<br>
    <br>
    I think it could be worth to file an issue report at [2].<br>
    <br>
    Best regards.<br>
    <br>
    Andrea Giudiceandrea<br>
    <br>
    <br>
    [1]
<a class="moz-txt-link-freetext" href="https://docs.qgis.org/3.22/en/docs/user_manual/introduction/general_tools.html#debug-dev-tools">https://docs.qgis.org/3.22/en/docs/user_manual/introduction/general_tools.html#debug-dev-tools</a><br>
    [2] <a class="moz-txt-link-freetext" href="https://github.com/qgis/QGIS/issues">https://github.com/qgis/QGIS/issues</a><br>
  </body>
</html>