title: php cURL doesnt print out anything
body: <p>I am trying to send a HTML form POST data with a cURL, but it seems the response is always empty. I first save all the POST data in an array, and use an implode function. When I echo out the implode string it does return the values, but after the cURL it's just empty.</p>
  
  <p>This is the setup. I call this function after submitting the form</p>
  
  <pre><code>$this-&gt;OCIcURL($this-&gt;request-&gt;post);
  
  public function OCIcURL($post) {
      $data_oci = array();
      $items_oci = array();     
  
      $counter = 0;
      $data_oci['~caller'] = 'CTLG';
      foreach ($post['item'] as $key =&gt; $value)
      {
          $counter++;
          $data_oci['NEW_ITEM-DESCRIPTION[' . $counter . ']']         = $value;
          $data_oci['NEW_ITEM-MATNR[' . $counter . ']']               = "";
          $data_oci['NEW_ITEM-QUANTITY[' . $counter . ']']            = $post['amount'][$counter];
          $data_oci['NEW_ITEM-UNIT[' . $counter . ']']                = "";
          $data_oci['NEW_ITEM-PRICE[' . $counter . ']']               = $post['price'][$counter];
          $data_oci['NEW_ITEM-CURRENCY[' . $counter . ']']            = $this-&gt;session-&gt;data['currency'];
          $data_oci['NEW_ITEM-PRICEUNIT[' . $counter . ']']           = 1;
          $data_oci['NEW_ITEM-LEADTIME[' . $counter . ']']            = "";
          $data_oci['NEW_ITEM-VENDOR[' . $counter . ']']              = "";
          $data_oci['NEW_ITEM-VENDORMAT[' . $counter . ']']           = "";
          $data_oci['NEW_ITEM-MANUFACTCODE[' . $counter . ']']        = "";
          $data_oci['NEW_ITEM-MANUFACTMAT[' . $counter . ']']         = "";
          $data_oci['NEW_ITEM-MATGROUP[' . $counter . ']']            = "";
          $data_oci['NEW_ITEM-SERVICE[' . $counter . ']']             = "";
          $data_oci['NEW_ITEM-CONTRACT[' . $counter . ']']            = "";
          $data_oci['NEW_ITEM-CONTRACT_ITEM[' . $counter . ']']       = "";
          $data_oci['NEW_ITEM-EXT_QUOTE_ID[' . $counter . ']']        = "";
          $data_oci['NEW_ITEM-EXT_QUOTE_ITEM[' . $counter . ']']      = "";
          $data_oci['NEW_ITEM-EXT_PRODUCT_ID[' . $counter . ']']      = "";
          $data_oci['NEW_ITEM-ATTACHMENT[' . $counter . ']']          = "";
          $data_oci['NEW_ITEM-ATTACHMENT_TITLE[' . $counter . ']']    = "";
          $data_oci['NEW_ITEM-ATTACHMENT_PURPOSE[' . $counter . ']']  = "";
          $data_oci['NEW_ITEM-EXT_SCHEMA_TYPE[' . $counter . ']']     = "";
          $data_oci['NEW_ITEM-EXT_CATEGORY_ID[' . $counter . ']']     = "";
          $data_oci['NEW_ITEM-CUST_FIELD1[' . $counter . ']']         = 21;
          $data_oci['NEW_ITEM-PARENT_ID[' . $counter . ']']           = "";
          $data_oci['NEW_ITEM-ITEM_TYPE[' . $counter . ']']           = "";
      }
  
      foreach ($data_oci as $key =&gt; $value) 
      {
          $items_oci[] = $key . '=' . $value;
      }
      $string_oci = implode('&amp;', $items_oci);
  </code></pre>
  
  <p>If I echo out the <code>$string_oci</code> I do get a result. After this I use the cURL to send the string to a link.</p>
  
  <pre><code>    $url = "http://localhost/test.php";
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, $url);
      curl_setopt($ch, CURLOPT_POST, 1);
      curl_setopt($ch, CURLOPT_POSTFIELDS, $string_oci);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER , 1);  // RETURN THE CONTENTS OF THE CALL
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
      $response = curl_exec($ch);
      var_dump($response);
  }
  </code></pre>
  
  <p>The var_dump is always empty, returning <code>string(0) ""</code>. I also tried this on the live website, same result.</p>
  
  <p>I used this piece of code to see any errors, but it seems it there arent any error at all, but the <code>var_dump</code> is always empty.</p>
  
  <pre><code>    if (curl_exec($ch) === FALSE) 
      {
          print_r(curl_getinfo($ch));
          die("Curl error: " . curl_error($ch));
      }
      else
      {   
          curl_close($ch);
      }
  </code></pre>