Reply To: How to connect to JSON API

Home Forums V-Control General How to connect to JSON API Reply To: How to connect to JSON API

#6899
JonasStade
Participant

Hi Dierk,

I found the mistake on the whole thing:

ÄzÌJ:àLhE{1Ú@

ÂDã_ÐAÚØP?ºPOST / HTTP/1.1
Content-Type: text/plain
User-Agent: PostmanRuntime/7.15.0
Accept: */*
Cache-Control: no-cache
Postman-Token: 4b243b39-1067-43a9-a23a-1deee3587f13
Host: 10.20.21.10:8080
accept-encoding: gzip, deflate
content-length: 68
Connection: keep-alive

{"jsonrpc":"2.0", "id":20, "method":"Pixera.Screens.getScreenNames"}

ÄzÌJ:àLhE6"@

Â\>¸:üdßúP?ÜPOST / HTTP/1.1
Content-Type: text/plain
User-Agent: V-Control/4.1.5
Accept: */*
Cache-Control: no-cache
Postman-Token: 66197b73-b76d-442f-be13-1c43b56ffbfc
accept-encoding: gzip, deflate
content-length: 68
Connection: keep-alive
{"jsonrpc":"2.0", "id":20, "method":"Pixera.Screens.getScreenNames"} HTTP/1.0
Accept: */*
Accept-Language: en
Host: 10.20.21.10

So there are some points on that. First fact that you should have known as a programer, vcontrol adds this part BEHIND the command.
Accept: */*
Accept-Language: en
Host: 10.20.21.10

But it seems not relevant for the whole thing.

The most important thing on pixera is Content-Length!! This defines the command lenght and when you leave that out, it sais “Request has no data.”. This is something you have to know and its very reverse engineered from me 🙂

So it works now and I will upload the driver, when its ready 😉

Scroll to top