Skip to content

Instantly share code, notes, and snippets.

@franciscocpg
Created October 28, 2015 19:05
Show Gist options
  • Select an option

  • Save franciscocpg/c6e9b2abff8126d7bc8e to your computer and use it in GitHub Desktop.

Select an option

Save franciscocpg/c6e9b2abff8126d7bc8e to your computer and use it in GitHub Desktop.

Given an api that returns gzip content (Content-Encoding: gzip at responde header), the code below is goint to gunzip the content.

curl -v -H 'Accept-Encoding: gzip, deflate, sdch' http://url | gunzip -

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