Open CuteistFox opened 1 year ago
Hi @Meow-purr I wanted to understand more about this issue as I was interested to work on this issue. Do you want the incoming request from a server to get decompressed and show or while sending the request, it needs to be decompressed? If the response is not decompressed, how does it look like currently using httpie
when compressed data is sent from a http server?
for a tarball of linux kernal `https https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/snapshot/linux-6.4-rc7.tar.gz HTTP/1.1 200 OK Connection: keep-alive Content-Disposition: inline; filename="linux-6.4-rc7.tar.gz" Content-Security-Policy: default-src 'self'; style-src 'self' 'unsafe-inline'; script-src-attr 'unsafe-hashes' 'sha256-rQQdnklrOmulrf5mQ2YjUK7CGbu4ywAi21E8nGlJcDc'; img-src https: Content-Type: application/x-gzip; charset=UTF-8 Date: Thu, 22 Jun 2023 17:36:39 GMT ETag: "be10b9a5f6c20252039731efda7f268e57fb5dd3" Expires: Thu, 22 Jun 2023 18:36:04 GMT Last-Modified: Thu, 22 Jun 2023 17:36:04 GMT Referrer-Policy: same-origin Server: nginx Strict-Transport-Security: max-age=15768001 Transfer-Encoding: chunked X-Content-Type-Options: nosniff X-Frame-Options: DENY
+-----------------------------------------+ | NOTE: binary data not shown in terminal | +-----------------------------------------+
`
and i can loop it through zcat
https https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/snapshot/linux-6.4-rc7.tar.gz | zcat
and get something so large it would be spam if i posted it here
which is the entire code of linux
or
tarball is not unarchived
but just u=in text reprsentation
Can you please format your comments? It is actually hard to understand. From the looks of it, it seems that you need the file to display which was gzipped and sent during the request.
Can you please format your comments? It is actually hard to understand. From the looks of it, it seems that you need the file to display which was gzipped and sent during the request.
@Meow-purr Can you please elaborate the last point?
simplicity of savibg fieles uncompressed
without having a long stream of pipes or briefly having compressed data stored(even if in /tmp)
Enhancement request
decompress compressed data (not just gzip)
checklist