메신저에 컬이 몇 가지 문제가 있습니다. 해결 방법을 모릅니다.CURLOPT_FOLLOWLOCATION을 (를) 활성화 할 수 없습니다.
아이디어는 사용자 이름과 PW를 가져 와서 외부 웹 페이지에 게시하는 것입니다. 여기
코드입니다 : 여기
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://sso.uc.cl/cas/login?service=https://portaluc.puc.cl/uPortal/Login"); // URL to post
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, "username=$usuario&password=$pw");
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
$result = curl_exec($ch); // runs the post
curl_close($ch);
echo "Reply Response: " . $result; // echo reply response
오류입니다 : 그 오류 후
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/th000862/public_html/encuesta/login2.php on line 10
는, 사용자는 외부 웹 페이지에 로그인되지 않습니다.
, PEAR Http_Request2 또는 젠드/호드 또는 다른 HTTP 유틸리티 구현을 시도 :
이 시도. – mario