Hallo,
ich habe auf einem Windowsrechner ein httpmod definiert.
Das funktioniert einwandfrei. Als Antwort erhalte ich:
2021.03.12 20:16:25 4: jq_300: Read callback: request type was update retry 0,
header: HTTP/1.1 200 OK
Server: nginx/1.15.0
Date: Fri, 12 Mar 2021 19:13:01 GMT
Content-Type: application/json; charset=UTF-8
Connection: close
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, HEAD, OPTIONS
Access-Control-Expose-Headers: Origin, X-Requested-With, Content-Type, Accept
Content-Encoding: gzip, body length 485
2021.03.12 20:16:25 5: jq_300: Read callback: body
jsoncallback({"returnCode":"0000","returnMsg":"成功","timestamp":0,"deviceValueVos":[{"content":"0","dptId":1,"seq":1},{"content":null,"dptId":1,"seq":2},{"content":null,"dptId":1,"seq":3},{"content":"17","dptId":1,"seq":4},{"content":"40","dptId":1,"seq":5},{"content":"33","dptId":1,"seq":6},{"content":"0.018","dptId":1,"seq":7},{"content":"0.486","dptId":1,"seq":8},{"content":"389","dptId":1,"seq":9},{"content":"2700","dptId":1,"seq":10}],"deviceToken":"XXXXXXXXXXXXXX"})
2021.03.12 20:16:25 4: jq_300: BodyDecode found charset header and set decoding to UTF-8 (bodyDecode was set to auto)
2021.03.12 20:16:25 4: jq_300: BodyDecode is decoding the response body as UTF-8
Nun habe ich das komplett 1:1 auf meinen Raspberry übertragen. Da erhalte ich folgende Meldung:
2021.03.12 20:24:13 4: jq_300: Read callback: request type was update retry 0,
header: HTTP/1.1 200 OK
Server: nginx/1.15.0
Date: Fri, 12 Mar 2021 19:20:47 GMT
Content-Length: 0
Connection: close
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, HEAD, OPTIONS
Access-Control-Expose-Headers: Origin, X-Requested-With, Content-Type, Accept, no body
2021.03.12 20:24:13 5: jq_300: Read callback: body empty
Ich habe es schon mit
attr global httpcompress 0
probiert.
Was mache ich falsch oder was fehlt auf meinem RPI, damit das gzip entpackt wird?