Hello Moritz,
Thank you for the reply.
Yes, when I query the API with the "deflate" header set in my query, the returned data does not appear to be encoded correctly (I am unable to uncompress the data as I would expect).
Below is an example to illustrate what I'm trying to communicate.
curl -H "Accept-Encoding: gzip, deflate, identity" "https://xyz/api/table.json?content=devices&columns=device,host,tags&output=json&filter_tags=@tag(IOS,NXOS,DNOS,FTOS,FortiOS,EtherHaul,SonicOS,AirFiber)&filter_type=@sub(device)&sortby=name&username=oxidizer&passhash=xxxxxxxx&filter_status=3&filter_status=4" -k > test
$ zlib-flate -uncompress < test
flate: inflate: data: incorrect header check
If I do the same query without specifying 'deflate" the results are returned uncompressed and as expected.
The author of the other application I am integrating against has suggested that I contact Paessler to verify there are no known bugs with how the returned data is compressed using 'deflate'.
In addition, for my own sanity in getting this working, is there a flag I can set in a PRTG config file to disable support for 'deflate compression' similar as to how I would in other web servers such as nginx/apache/etc?
Kind regards,
Add comment