본문 바로가기
etc/프로그래밍

PHP : curl_exec 주의사항

by 칸타렌서 2020. 11. 25.
$response = curl_exec($ch); 
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
echo '<br>///1-------'.$httpcode;
//echo '<br>///2-------'.$response;

$response를 그대로 echo를 이용해 뿌리면 

html 화면이 그대로 뜨게 된다. 

 

댓글