FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour Create and download zip file with AJAX
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Create and download zip file with AJAX
Posted: Mon Jan 04, 2021 11:06 PM

Dear Antonio,
How can I compress response json in ajax call.
I think this should be possible with mod harbor.
But then is if sufficient to simply use content-encoding: gzip.
Maybe you have an example.

Best regards,
Otto

Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
Re: Create and download zip file with AJAX
Posted: Sun Jan 10, 2021 05:10 PM

Otto,

This work is done by Apache transparently. You must activate the mod_deflate in your httpd.conf

To see if your site works there are pages that will help you verify it, such as https://www.giftofspeed.com/gzip-test/

C.

Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Create and download zip file with AJAX
Posted: Tue Jan 12, 2021 01:55 PM
Hello Carles,
thank you so much.
On my server I had to use this test tool:

https://www.whatsmyip.org/http-compression-test

https://www.giftofspeed.com/gzip-test/ give me an error.
On an other serve this is working fine.


Best regards,
Otto

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Create and download zip file with AJAX
Posted: Wed Jan 27, 2021 05:48 PM
Hello Carles,
I made a test with deflate on and off.



Thank you again for your help.

Best regards,
Otto

Continue the discussion