HC2 HTTP request to FHEM

Begonnen von JetRex92, 13 September 2015, 18:32:52

Vorheriges Thema - Nächstes Thema

JetRex92

Hello

I need some help ...

I use to manage Blyss and EnOcean modules, with a Raspi FHEM.
I order them from the HC2 using virtual modules.
Everything works correctly if I do not put on FHEM authentication. With authentication .... nothing happens, no action !!!

I put below the HTTP request that I send.

Request that works without authentication FHEM :
/fhem?cmd.Prise=set%20Prise%20on&room=Piece01 GET HTTP / 1.10x0D0x0AHost: xxx.xxx.xxx.xxx: yyyy 0x0D0x0A0x0D0x0A

Request with authentication does not work :
/fhem?cmd.Prise=set%20Prise%20on&room=Piece01 GET HTTP / 1.10x0D0x0AHost: xxx.xxx.xxx.xxx: yyyy 0x0D0x0AAuthorization: Basic zzz 0x0D0x0A0x0D0x0A

xxx.xxx.xxx.xxx = IP fhem
yyyy = fhem Port
zzz = login: password base 64

For several days I look around here on the forum and elsewhere but I have found nothing.

If someone has an idea

thank you in advance

rudolfkoenig

I do not see a problem at the first glance. I recommend to log in to this site via Chrome, open the JavaScript Console, switch to the Network tab, reload the page, and look at the header of an arbitrary file. Look for the Authorization line. What is HC2?

JetRex92

The HC2 is the box home center of Fibaro.

JetRex92

Another solution would be to indicate in FHEM a local IP address that does not require authentication in FHEM like Domoticz.
But I do not know if it is possible

rudolfkoenig