Open asfimport opened 6 years ago
UbikLoadPack support (migrated from Bugzilla): As per dev mailing list discussion:
Hello, In some applications, the request body needs to be gzipped.
It is currently possible to do it by developping a JSR223 PreProcessor but it requires some development knowledge.
We would like to contribute a patch to provide this but have some questions on what best options would be:
Option 1 :Should it be automatic, ie, whenever a Header Content-Encoding=gzip , we do it:
Easy
To disable it, remove Content-Encoding header
Is there a case where it would be annoying ?
We would add a property to disable registration of this Interceptor to disable globally the feature if really needed
Option 2 :Should it be activated by a checkbox in HTTP Request Advanced Tab ?
Yet Another option in a complex UI ?
Option 3 : Should it be a PreProcessor ?:
More flexible
but requires insertions in many places
Unless there is a case we would go for Option 1.
Any thoughts ?
Created attachment BUG_61748.patch: Patch implementing option 1
@pmouawad (Bug 61748): We should provide a way to send compressed content.
We could detect if a header is set :
And compress the body as a consequence
OS: All