Bug 61748

Summary: Add ability to send compressed request
Product: JMeter - Now in Github Reporter: Philippe Mouawad <p.mouawad>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: enhancement CC: support
Priority: P2    
Version: 3.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Patch implementing option 1

Description Philippe Mouawad 2017-11-11 22:47:15 UTC
We should provide a way to send compressed content.

We could detect if a header is set :
- Content-Encoding: gzip

And compress the body as a consequence
Comment 1 UbikLoadPack support 2018-05-07 15:41:07 UTC
Created attachment 35914 [details]
Patch implementing option 1

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 ?


Thanks
Regards
UbikLoadPack Team
-----------------------------------------------------------------
Comment 2 The ASF infrastructure team 2022-09-24 20:38:11 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4580