{"action":"created","issue":{"url":"https://api.github.com/repos/sleeping-owl/apist/issues/9","repository_url":"https://api.github.com/repos/sleeping-owl/apist","labels_url":"https://api.github.com/repos/sleeping-owl/apist/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/sleeping-owl/apist/issues/9/comments","events_url":"https://api.github.com/repos/sleeping-owl/apist/issues/9/events","html_url":"https://github.com/sleeping-owl/apist/issues/9","id":188067524,"number":9,"title":"Редирект","user":{"login":"KoBa4","id":1263947,"avatar_url":"https://avatars.githubusercontent.com/u/1263947?v=3","gravatar_id":"","url":"https://api.github.com/users/KoBa4","html_url":"https://github.com/KoBa4","followers_url":"https://api.github.com/users/KoBa4/followers","following_url":"https://api.github.com/users/KoBa4/following{/other_user}","gists_url":"https://api.github.com/users/KoBa4/gists{/gist_id}","starred_url":"https://api.github.com/users/KoBa4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KoBa4/subscriptions","organizations_url":"https://api.github.com/users/KoBa4/orgs","repos_url":"https://api.github.com/users/KoBa4/repos","events_url":"https://api.github.com/users/KoBa4/events{/privacy}","received_events_url":"https://api.github.com/users/KoBa4/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-08T18:26:33Z","updated_at":"2016-11-09T11:34:33Z","closed_at":null,"body":"Есть такой код:\r\n```php\r\ninclude 'vendor/autoload.php';\r\nuse SleepingOwl\\Apist\\Apist;\r\n\r\nclass LostFilmApi extends Apist\r\n{\r\n    public function getBaseUrl()\r\n    {\r\n        return 'http://www.lostfilm.tv/';\r\n    }\r\n\r\n    public function getTorrents($seriesId, $season, $episode)\r\n    {\r\n        return $this->get('/nrdr2.php', Apist::filter('div div:nth-child(6)')->each(\r\n            [\r\n                'type' => Apist::current()\r\n                    ->filter('td[style=\"width:55px;\"] img')\r\n                    ->attr('src')->ltrim('img/search')->ltrim(\"_\")->rtrim('.png'),\r\n                'link' => Apist::current()->filter('div nobr a')->attr('href')\r\n            ]\r\n        ),\r\n            [\r\n                'query' => [\r\n                    'c' => $seriesId,\r\n                    's' => $season,\r\n                    'e' => $episode\r\n                ],\r\n                'headers' => [\r\n                    'Cookie' => 'uid=xxxxxx; pass=xxxxxxxxxxxxxxxxxx; usess=xxxxxxxxxxxxxxxxxxxx'\r\n                ]\r\n            ]\r\n        );\r\n    }\r\n\r\n}\r\n```\r\nСсылка для отправки GET запроса в итоге выглядит к примеру так `http://www.lostfilm.tv/nrdr2.php?c=176&s=4&e=99`, но при переходе по ней происходит редирект на такую страницу `http://retre.org/?c=176&s=4&e=99&u=3594923&h=53cfecd4ef2bdbd276457cac35a86b97` и в итоге код возвращает пустой массив.\r\nИ у меня возник такой вопрос. Реализована ли у вас возможность следовать за редиректом, как это сделано в cURL? Или может я где-то ошибся?\r\nБуду признателен за помощь.\r\n"},"comment":{"url":"https://api.github.com/repos/sleeping-owl/apist/issues/comments/259394277","html_url":"https://github.com/sleeping-owl/apist/issues/9#issuecomment-259394277","issue_url":"https://api.github.com/repos/sleeping-owl/apist/issues/9","id":259394277,"user":{"login":"KoBa4","id":1263947,"avatar_url":"https://avatars.githubusercontent.com/u/1263947?v=3","gravatar_id":"","url":"https://api.github.com/users/KoBa4","html_url":"https://github.com/KoBa4","followers_url":"https://api.github.com/users/KoBa4/followers","following_url":"https://api.github.com/users/KoBa4/following{/other_user}","gists_url":"https://api.github.com/users/KoBa4/gists{/gist_id}","starred_url":"https://api.github.com/users/KoBa4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KoBa4/subscriptions","organizations_url":"https://api.github.com/users/KoBa4/orgs","repos_url":"https://api.github.com/users/KoBa4/repos","events_url":"https://api.github.com/users/KoBa4/events{/privacy}","received_events_url":"https://api.github.com/users/KoBa4/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T11:34:33Z","updated_at":"2016-11-09T11:34:33Z","body":"@erickskrauch, Я попробовал ваш форк, подправил код и если сможешь помочь, то вот [Gist](https://gist.github.com/KoBa4/98225f593b5761dcdac88e2281137796)"}}
{"actor":{"display_login":"KoBa4"}}