[PHP] curl urlencode
$s_data : 양쪽에서 약속한 암호화 한 값 $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "text=".urlencode($s_data) ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/x-www-form-urlencoded')); $result = curl_exec($ch); form 데이터로 데이터를 전송할 때 Content-Type:application/x-www-form-urlencoded 이 설정되어 있어..