Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How can I use "encoding-type: gzip"? #473

Open
0Ams opened this issue Nov 23, 2022 · 1 comment
Open

[Question] How can I use "encoding-type: gzip"? #473

0Ams opened this issue Nov 23, 2022 · 1 comment

Comments

@0Ams
Copy link

0Ams commented Nov 23, 2022

curl command

curl --compressed http://localhost/test -H 'content-encoding: gzip' -H 'content-type: application/json' -H 'Accept-Encoding: gzip' --data-binary @small.tar.gz

Want to autocannon

autocannon -c 10 -d 5 -p 2 -H 'content-encoding: gzip' -H 'content-type: application/json' -H 'Accept-Encoding: gzip' --input ./small.tar.gz -m post localhost/test

Is it impossible to test for compression?

If can it, please let me know what you can do. :)

@neoswallow
Copy link

For me -H 'Accept-Encoding: gzip' worked.
I didn't set content-encoding and content-type as I wasn't sending any payload but I saw average payload reduced with Accept-Encoding: gzip compared with test without it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants