{"action":"created","issue":{"url":"https://api.github.com/repos/hiryou/CurlBot/issues/1","repository_url":"https://api.github.com/repos/hiryou/CurlBot","labels_url":"https://api.github.com/repos/hiryou/CurlBot/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/hiryou/CurlBot/issues/1/comments","events_url":"https://api.github.com/repos/hiryou/CurlBot/issues/1/events","html_url":"https://github.com/hiryou/CurlBot/issues/1","id":127044351,"number":1,"title":"shareing cookie in function ","user":{"login":"raaaas","id":7237781,"avatar_url":"https://avatars1.githubusercontent.com/u/7237781?v=3","gravatar_id":"","url":"https://api.github.com/users/raaaas","html_url":"https://github.com/raaaas","followers_url":"https://api.github.com/users/raaaas/followers","following_url":"https://api.github.com/users/raaaas/following{/other_user}","gists_url":"https://api.github.com/users/raaaas/gists{/gist_id}","starred_url":"https://api.github.com/users/raaaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raaaas/subscriptions","organizations_url":"https://api.github.com/users/raaaas/orgs","repos_url":"https://api.github.com/users/raaaas/repos","events_url":"https://api.github.com/users/raaaas/events{/privacy}","received_events_url":"https://api.github.com/users/raaaas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-01-16T18:27:15Z","updated_at":"2017-03-09T18:55:16Z","closed_at":null,"body":"hello im useing your tools, its greate so far but i have big problem \n\ni add code this to your code \n\n```\npublic static function getInstance() {\n    if (!CurlBot::$instance instanceof self) {\n         CurlBot::$instance = new self();\n    }\n    return CurlBot::$instance;\n}\n```\n\nso i could call it like this\n\n```\n        CurlBot::getInstance()->submitForm($url,$submitData);\n```\n\nbut my problem is im trying to pass captcha protect download content , so i download captch and print it to use so after it passed use could download data \n\nhere is my function \n// to get captch and from \nfunction cookiegetter($url){\n\n```\n        CurlBot::getInstance()->useCookies = true;\n        CurlBot::getInstance()->navigateTo($url);\n        $returnDATA = array('body' => CurlBot::getInstance()->getPageBody() , 'header' => CurlBot::getInstance()->getPageHeader() );\n        return $returnDATA;\n```\n\n}\n\nfunction postdownload($data){\n\n```\n        $url = $data['url'];\n        $captch =  $data['captcha_code'];\n        $submitData = array(\"captcha_code\" => $captch);\n        $cookie = cookieparser($data['header']);\n\n        CurlBot::getInstance()->submitForm($url,$submitData);\n        echo CurlBot::getInstance()->getPageBody();\n```\n\n}\n\ndownload file\n\nbut code dose not pass captcha nor enter currect captcha , its showing me error in captcha , i guess there is problem in session , cookie \n\ndo you have any sugestion \n"},"comment":{"url":"https://api.github.com/repos/hiryou/CurlBot/issues/comments/285445029","html_url":"https://github.com/hiryou/CurlBot/issues/1#issuecomment-285445029","issue_url":"https://api.github.com/repos/hiryou/CurlBot/issues/1","id":285445029,"user":{"login":"hiryou","id":1134856,"avatar_url":"https://avatars1.githubusercontent.com/u/1134856?v=3","gravatar_id":"","url":"https://api.github.com/users/hiryou","html_url":"https://github.com/hiryou","followers_url":"https://api.github.com/users/hiryou/followers","following_url":"https://api.github.com/users/hiryou/following{/other_user}","gists_url":"https://api.github.com/users/hiryou/gists{/gist_id}","starred_url":"https://api.github.com/users/hiryou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiryou/subscriptions","organizations_url":"https://api.github.com/users/hiryou/orgs","repos_url":"https://api.github.com/users/hiryou/repos","events_url":"https://api.github.com/users/hiryou/events{/privacy}","received_events_url":"https://api.github.com/users/hiryou/received_events","type":"User","site_admin":false},"created_at":"2017-03-09T18:55:16Z","updated_at":"2017-03-09T18:55:16Z","body":"Hi raaaas.\r\n\r\nI'm glad you're using the curlLib! Sorry due to being busy with job, I haven't maintained this PHP lib for a while. I'll get back to you as soon as I can."}}
{"actor":{"display_login":"hiryou"}}