LINUX.ORG.RU

История изменений

Исправление dimagra, (текущая версия) :

На самом деле мне на любом языке, который есть на Centos 7, лучше всего на php. Я перепробовал уже очень много вариатов и ничего не работает. Записал в файл deflate.dat

zlib-flate -uncompress < deflate.dat  > page.html 
flate: inflate: data: incorrect header check

unpigz -c deflate.dat
unpigz: skipping: deflate.dat is not compressed

openssl zlib -d < deflate.dat > page.html
140264494790544:error:29065064:lib(41):BIO_ZLIB_READ:zlib inflate error:c_zlib.c:548:zlib error:data error

unzip deflate.dat
Archive:  deflate.dat
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of deflate.dat or
        deflate.dat.zip, and cannot find deflate.dat.ZIP, period.


python3 -c "import zlib,sys; sys.stdout.buffer.write(zlib.decompress(sys.stdin.buffer.read()))" < deflate.dat > outfile.html
Traceback (most recent call last):
  File "<string>", line 1, in <module>
zlib.error: Error -3 while decompressing data: incorrect header check

7za x deflate.dat
Extracting archive: deflate.dat
ERROR: deflate.dat
Can not open the file as archive
Can't open as archive: 1
Files: 0
Size:       0
Compressed: 0

единственное, что у меня получилось, это:

curl  -H "Accept-Encoding: deflate"  --compressed    https://SITE/

Вот curl каким-то образом распаковывает. Но мне нужно именно с помощью линукса распаковать Забыл уточнить, сервер на котором отдается такое сжатие Microsoft-IIS/10.0. В заголовке отдает:

Server: Microsoft-IIS/10.0
Cache-Control: no-cache, no-store, must-revalidate
Content-Encoding: deflate
X-Frame-Options: SAMEORIGIN
X-UA-Compatible: IE=Edge
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET

Исходная версия dimagra, :

На самом деле мне на любом языке, который есть на Centos 7, лучше всего на php. Я перепробовал уже очень много вариатов и ничего не работает. Записал в файл deflate.dat

zlib-flate -uncompress < deflate.dat  > page.html 
flate: inflate: data: incorrect header check

unpigz -c deflate.dat
unpigz: skipping: deflate.dat is not compressed

openssl zlib -d < deflate.dat > page.html
140264494790544:error:29065064:lib(41):BIO_ZLIB_READ:zlib inflate error:c_zlib.c:548:zlib error:data error

unzip deflate.dat
Archive:  deflate.dat
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of deflate.dat or
        deflate.dat.zip, and cannot find deflate.dat.ZIP, period.


python3 -c "import zlib,sys; sys.stdout.buffer.write(zlib.decompress(sys.stdin.buffer.read()))" < deflate.dat > outfile.html
Traceback (most recent call last):
  File "<string>", line 1, in <module>
zlib.error: Error -3 while decompressing data: incorrect header check

7za x deflate.dat
Extracting archive: deflate.dat
ERROR: deflate.dat
Can not open the file as archive
Can't open as archive: 1
Files: 0
Size:       0
Compressed: 0

единственное, что у меня получилось, это:

curl  -H "Accept-Encoding: deflate"  --compressed  -I  https://SITE/

Вот curl каким-то образом распаковывает. Но мне нужно именно с помощью линукса распаковать Забыл уточнить, сервер на котором отдается такое сжатие Microsoft-IIS/10.0. В заголовке отдает:

Server: Microsoft-IIS/10.0
Cache-Control: no-cache, no-store, must-revalidate
Content-Encoding: deflate
X-Frame-Options: SAMEORIGIN
X-UA-Compatible: IE=Edge
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET