title: PHP I want to send the post data by Codeigniter, How to make the post request?
body: <p>I am developing the web server using other service by CodeIgniter.
  So I am going to send the data to the service using api calling.
  But I have a issue to make the request.</p>
  
  <p>This is the data what I want to send.</p>
  
  <pre><code>$datastr = 'proc_name=customer_upd&amp;params={ 
  "proc_info":
  { 
      "proc_division":"U"
  }, 
  "data":[{ 
      "table_name":"Customer", 
      "rows":[ {
                      "itemId" : "12231551",
                      "lastName" : "ads",
                      "firstName" : "fds"
     } ] 
  }] 
  }'
  </code></pre>
  
  <p>I made my code for this.</p>
  
  <pre><code>$curl = curl_init('https://webapi.ooo.com/access/');
  curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
  curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded;charset=UTF-8'));
  
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);  
  curl_setopt($curl, CURLOPT_POSTFIELDS, $datastr);
  curl_exec($curl);
  </code></pre>
  
  <p>But this is not work.
  I am tested by postman, but it works well.
  I think there is a issue to make the post request.
  Please help me.
  Thank you.</p>