I’m a FileMaker developer and new to the Xojo framework. I’m developing an iOS app and a Web app with Xojo for connecting with a FileMaker runtime application. The Web App serves as the “middleware” for storing information sent by the IOS app for later retrieval by the Filemaker app. Conceptually, it’s pretty simple. Everything is working as designed but one thing. When the Filemaker app posts a request to the Xojo web app, the information returned is not in JSON format but shows up as garbage characters (compression?). I assume it is getting compressed on the web side. I am using the HandleSpecialURL Event handler in which there is a “Request.Print(output)” command. “output” is JSON text. How do I disable the compression? Should I be doing this differently? Thanks for your help.
It should only be compressing the data if the socket that is connecting told us that it can handle gzipped content. If it’s not, that’s a bug and you should file a report.
Edit: I just checked the code. The only way that this would be happening is if the client (in this case Filemaker) was including a header saying that it accepts gzipped content. e.g.
Accept-Encoding: gzip
If that’s the case, it’s telling us that it expects a compressed response.
[quote=238465:@Greg O’Lone]It should only be compressing the data if the socket that is connecting told us that it can handle gzipped content. If it’s not, that’s a bug and you should file a report.
Edit: I just checked the code. The only way that this would be happening is if the client (in this case Filemaker) was including a header saying that it accepts gzipped content. e.g.
Accept-Encoding: gzip
If that’s the case, it’s telling us that it expects a compressed response.[/quote]