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

gzipped page issue #1

Open
cry0m1 opened this issue Apr 23, 2014 · 0 comments
Open

gzipped page issue #1

cry0m1 opened this issue Apr 23, 2014 · 0 comments

Comments

@cry0m1
Copy link

cry0m1 commented Apr 23, 2014

Seems there is an issue while getting gzipped page:

$opts = array(
  'http'=>array(
    'method'=>"GET",
    'header'=>"Accept-language: en\r\n" .
              "Accept-Encoding: gzip\r\n"
  )
);
$context = stream_context_create($opts);
file_get_contents('URL', false, $context)

does not work.

Please update file_get_dom() with:

  1. Detect that page is gzipped
  2. If yes, do gzdecode(file_get_contents(...))
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

1 participant