NEWS
Digest Auth
-
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);