0
나는 분석기 종류의 스크립트 작업 중입니다. 내 스크립트는 시스템에 로그인해야하지만 시스템에는 captcha가 있으며이 captcha는 쿠키를 통해 표시됩니다. 내가 사이트를 통과 할 때 captcha를 볼 수 있지만 앱을 통해 사이트에 갈 때. 그것은 보이지 않는다. 내 코드는 아래와 같습니다.file_get_contents는 .asp에서 이미지를 다운로드하지 않습니다.
어떻게 쿠키를 전달할 수 있습니까?
$id = "name";
$pw = "pass";
$postfields = "name=$id&password=$pw&Nerden=Forum&securityCode={security_code}&AutoLogin=1&submit=Giriş Yap";
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 1); // Get the header
curl_setopt($ch, CURLOPT_URL,"login_user.asp?ForumID=0");
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0');
curl_setopt($ch, CURLOPT_COOKIEJAR, "/tmp/cookie");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "$postfields");
curl_exec($ch);
이 스크립트는 webwiz이며 첫째, 나는 포럼 경로 (포럼/default.asp와)과 2 단계로 이동합니다 : 내가 그러나 내가 볼 수없는 SESSION_ID = 어쩌구 저쩌구 (프로그램 인식)과 함께 사이트를 로그인으로 이동 gifs.
감사합니다.