Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Digest Auth

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Digest Auth

    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      maxx8888 last edited by

      Hallo!

      Ich bin am Skript basteln um eine Ochsner Wärmepumpe auszulesen. Das Webterminal lässt aber nur Digest Auth zu.
      Im Moment rufe ich per exec Kommando curl auf.
      Geht das auch irgendwie direkt mit einen Javascript Kommando? Das request Kommando scheint ja nur Basic Auth zu unterstützen?!
      Hab hier wohl was zu zusätzlichen libs gelesen die man per require einbinden kann.
      Ich frag mich nur welches das richtige und zuverlässigste ist...

      Das derzeit funktionierende Curl Kommando:

      exec('curl \'http://192.168.123.32/ws\' --digest -u USER:xxx -H \'Content-Type: text/xml; charset=utf-8\' -H \'Accept: text/xml\' -H \'Cache-Control: no-cache\' -H \'Pragma: no-cache\' -H \'SOAPAction:http://ws01.lom.ch/soap/listDP\' -H \'Content-length: 479\' -d \'<?xml version=\"1.0\" encoding=\"UTF-8\"?><SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:ns=\"http://ws01.lom.ch/soap/\"><SOAP-ENV:Body><ns:getDpRequest><ref><oid>1/3/4/119/1</oid><prop/></ref><startIndex>0</startIndex><count>-1</count></ns:getDpRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>\'',callback);
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate

      643
      Online

      31.8k
      Users

      80.0k
      Topics

      1.3m
      Posts

      1
      1
      223
      Loading More Posts
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      The ioBroker Community 2014-2023
      logo