title: Codeigniter Curl Library not working after server change
body: <p>I implemented a function which connects to a merchant using the curl library for Codeigniter <a href="http://codeigniter.com/wiki/Curl_library" rel="nofollow">http://codeigniter.com/wiki/Curl_library</a>. I finished the implementation and everything worked perfectly. However we now transfered the application to a Local Server. fresh installation of:
  Ubuntu Server 11.10
  Php 3.5.6
  Mysql 5.1
  Apache 2</p>
  
  <p>I'm using a static Ip configuration and I can connect to the internet.
  Using terminal I can ping sites like google, yahoo etc, however I cant Ping www.veripayment.com. I can open the website from other computers in the same network. But my ubuntu server cant.</p>
  
  <p>Please keep in mind this works in our server.</p>
  
  <pre><code>&lt;?php
      $post_str = "action=payment&amp;business="
      .urlencode($this-&gt;input-&gt;post('business'))
      ."&amp;vericode=".urlencode($this-&gt;input-&gt;post('vericode'))
      ."&amp;item_name=".urlencode($this-&gt;input-&gt;post('item_name'))
      ."&amp;item_code=".urlencode($this-&gt;input-&gt;post('item_code'))
      ."&amp;quantity=".urlencode($this-&gt;input-&gt;post('quantity'))
      ."&amp;amount=".urlencode($this-&gt;input-&gt;post('amount'))
      ."&amp;cc_type=".urlencode($this-&gt;input-&gt;post('cc_type'))
      ."&amp;cc_number=".urlencode($this-&gt;input-&gt;post('cc_number'))
      ."&amp;cc_expdate=".urlencode($this-&gt;input-&gt;post('cc_expdate_year')).urlencode($this-&gt;input-&gt;post('cc_expdate_month'))
      ."&amp;cc_security_code=".urlencode($this-&gt;input-&gt;post('cc_security_code'))
      ."&amp;shipment=".urlencode($this-&gt;input-&gt;post('shipment'))
      ."&amp;first_name=".urlencode($this-&gt;input-&gt;post('first_name'))
      ."&amp;last_name=".urlencode($this-&gt;input-&gt;post('last_name'))
      ."&amp;address=".urlencode($this-&gt;input-&gt;post('address'))
      ."&amp;city=".urlencode($this-&gt;input-&gt;post('city'))
      ."&amp;state_or_province=".urlencode($this-&gt;input-&gt;post('state_or_province'))
      ."&amp;zip_or_postal_code=".urlencode($this-&gt;input-&gt;post('zip_or_postal_code'))
      ."&amp;country=".urlencode($this-&gt;input-&gt;post('country'))
      ."&amp;shipping_address=".urlencode($this-&gt;input-&gt;post('shipping_address'))
      ."&amp;shipping_city=".urlencode($this-&gt;input-&gt;post('shipping_city'))
      ."&amp;shipping_state_or_province=".urlencode($this-&gt;input-&gt;post('shipping_state_or_province'))
      ."&amp;shipping_zip_or_postal_code=".urlencode($this-&gt;input-&gt;post('shipping_zip_or_postal_code'))
      ."&amp;shipping_country=".urlencode($this-&gt;input-&gt;post('shipping_country'))
      ."&amp;phone=".urlencode($this-&gt;input-&gt;post('phone'))
      ."&amp;email=".urlencode($this-&gt;input-&gt;post('email'))
      ."&amp;ip_address=".urlencode($this-&gt;input-&gt;post('ip_address'))
      ."&amp;website_unique_id=".urlencode($this-&gt;input-&gt;post('website_unique_id'));
  
      // Send URL string via CURL
      $backendUrl = "https://www.veripayment.com/integration/index.php";
      $this-&gt;curl-&gt;create($backendUrl);
      $this-&gt;curl-&gt;post($post_str);
      $return = $this-&gt;curl-&gt;execute();
  
      $result = array();
      // Explode array where blanks are found
      $resparray = explode(' ', $return);
  
      if ($resparray)
      {
          // save results into an array
          foreach ($resparray as $resp) {
              $keyvalue = explode('=', $resp);
              if(isset($keyvalue[1])){
                  $result[$keyvalue[0]] =  str_replace('"', '', $keyvalue[1]);
              }
          }
      }
      return $result;
  ?&gt;
  </code></pre>