CURLOPT_POSTFIELDS에 대한 curl POST 형식
CURLOPT_POSTFIELDS에 대한 curl POST 형식 내가 사용하는 경우 curl를 통해 POST와 세트 CURLOPT_POSTFIELD할 나는에있는 urlencode또는 특별한 형식? 예 : 첫 번째와 마지막 두 개의 필드를 게시하려는 경우 : first=John&last=Smith curl과 함께 사용해야하는 정확한 코드 / 형식은 무엇입니까? $ch=curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); $reply=curl_exec(..