Hi there,
We are authenticated and try to get all alarms but receive a wrong header error from the serve.
Can you please advice if the port 22331 is the correct one, the headers we send are correct ones and if the xml is the one that server expect.
We send:
POST /Central/AlarmServiceToken HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: “http://videoos.net/2/CentralServerAlarmCommand/IAlarmCommandToken/GetAlarmLines”
Host: 10.100.100.19:22331
Content-Length: 569
Expect: 100-continue
Accept-Encoding: gzip, deflate
<s:Envelope xmlns:s=“http://schemas.xmlsoap.org/soap/envelope/”>
<s:Body>
<GetAlarmLines xmlns=“http://videoos.net/2/CentralServerAlarmCommand”>
<token>TOKEN#BE107F5F-AFBC-42BF-8D9F-032544EA6681#[127.0.0.1:7080#](http://127.0.0.1:7080/# "http://127.0.0.1:7080/#")</token>
<from>0</from>
<maxCount>10</maxCount>
<filter xmlns:a="[http://schemas.datacontract.org/2004/07/VideoOS.Platform.Proxy.Alarm](http://schemas.datacontract.org/2004/07/VideoOS.Platform.Proxy.Alarm "http://schemas.datacontract.org/2004/07/VideoOS.Platform.Proxy.Alarm")" xmlns:i="[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance "http://www.w3.org/2001/XMLSchema-instance")">
<a:Conditions i:nil="true" />
<a:Orders>
<a:OrderBy>
<a:Order>Descending</a:Order>
<a:Target>Timestamp</a:Target>
</a:OrderBy>
</a:Orders>
</filter>
</s:Body>
</s:Envelope>
And receive back:
HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Wed, 02 Oct 2019 19:30:00 GMT
Connection: close
Content-Length: 339
Bad RequestBad Request - Invalid Header
HTTP Error 400. The request has an invalid header name.
Can you please assist?