# Http - invalid authentication method

**URL:** <https://community.openhab.org/t/http-invalid-authentication-method/140730>\
**Category:** Bindings\
**Tags:** http\
**Created:** [November 6, 2022, 10:58pm UTC](https://community.openhab.org/t/http-invalid-authentication-method/140730 "2022-11-06T22:58:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![japhias](https://community.openhab.org/user_avatar/community.openhab.org/japhias/32/41524_2.png) [@japhias](https://community.openhab.org/u/japhias)\
**Post date:** [November 6, 2022, 10:58pm UTC](https://community.openhab.org/t/http-invalid-authentication-method/140730/1 "2022-11-06T22:58:19Z")

</div>

Hi all,

I have created a rule, like this:

```javascript
var url = "https://username:password@ipverso.local.mydomain.com/api/system/time";
      var output = actions.HTTP.sendHttpGetRequest(url);
      logger.debug(output);

```

When I copy the url to my browser, I will get the expected json output.  
But when I execute the rule I get:

```yaml
{
  "success" : false,
  "error" : {
    "code" : 8,
    "description" : "invalid authentication method"
  }
}

```

The certificate is valid. Before I had a no certificate and there was another error.

So how can I use the same authentification method as my browser does?
