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

Copy Curl Command should include --compressed in curl command if Accept-Encoding: gzip is included in headers #130

Closed
mjparme opened this issue Jun 27, 2017 · 3 comments

Comments

@mjparme
Copy link

mjparme commented Jun 27, 2017

If the request headers include a compressed encoding in Accept-Encoding (like gzip or deflate) then it would be awesome if the Copy Curl Command menu item produced a curl command that included the "--compressed" command-line option. This lets curl decompress responses that use supported compression algorithms.

From "man curl":

--compressed
(HTTP) Request a compressed response using one of the algorithms curl supports, and save
the uncompressed document. If this option is used and the server sends an unsupported
encoding, curl will report an error.

@mmattozzi
Copy link
Owner

That sounds like a good idea to me!

mmattozzi added a commit that referenced this issue Jun 28, 2017
…compressed to a generated curl command so that curl decompresses the response body.
@mmattozzi
Copy link
Owner

Released in Version 1.4.2

@mjparme
Copy link
Author

mjparme commented Jul 31, 2017

Nice, thanks!

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

No branches or pull requests

2 participants