title: PHP - cURL file from localhost not working
body: <p>I copied a working script from my PHP server, but for development purposes, I would like it to work from my local XAMPP server.</p>
  
  <p>The cURL:</p>
  
  <pre><code>        $realpath_curl_file = realpath($curl_file);
  
          $post = array(
                  'recipient_number' =&gt; $recipient_number,
                  'user_id' =&gt; $user_id,
                  'up_file'=&gt; "@$realpath_curl_file"
          );
  
          //prepare data for cUrl
          $target_url = "http://api.blankthis.com/curl/outgoing";
          $ch = curl_init();
          curl_setopt($ch, CURLOPT_URL, $target_url);
          curl_setopt($ch, CURLOPT_POST,1);
          curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
          curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  
          $result = curl_exec ( $ch );
          $err = curl_errno ( $ch );
          $errmsg = curl_error ( $ch );
          $header = curl_getinfo ( $ch );
          $httpCode = curl_getinfo ( $ch, CURLINFO_HTTP_CODE );
          print_r($result);
          echo '------------------------';
          print_r($ch);
          print_r($err);
          print_r($errmsg);
          print_r($header);
          print_r($httpCode);
  </code></pre>
  
  <p>When I do a print_r($_POST) and print_r($_FILES), no files are being transfered. This is my result:</p>
  
  <pre><code>POST:Array ( [recipient_number] =&gt; 2394434455 [user_id] =&gt; 2 [up_file] =&gt; @C:\Users\Sharktek\AppData\Local\Temp\1422046077466.zip ) 
  
  FILES:Array ( ) 
  
  ------------------------
  Resource id 
  #570
  Array ( [url] =&gt; http://api.redfax.com/curl/outgoing [content_type] =&gt; text/html; charset=UTF-8 [http_code] =&gt; 200 [header_size] =&gt; 202 [request_size] =&gt; 196 [filetime] =&gt; -1 [ssl_verify_result] =&gt; 0 [redirect_count] =&gt; 0 [total_time] =&gt; 0.499 [namelookup_time] =&gt; 0.125 [connect_time] =&gt; 0.218 [pretransfer_time] =&gt; 0.218 [size_upload] =&gt; 409 [size_download] =&gt; 168 [speed_download] =&gt; 336 [speed_upload] =&gt; 819 [download_content_length] =&gt; 168 [upload_content_length] =&gt; 409 [starttransfer_time] =&gt; 0.359 [redirect_time] =&gt; 0 [redirect_url] =&gt; [primary_ip] =&gt; 107.191.119.155 [certinfo] =&gt; Array ( ) [primary_port] =&gt; 80 [local_ip] =&gt; 192.168.0.101 [
  </code></pre>
  
  <p>Does anyone know why my files are not being uploaded via cURL? As I said, this works fine my from my server (non-localhost)</p>
  
  <ul>
  <li>XAMPP PHP Installation has cURL enabled</li>
  <li>I disabled my firewall</li>
  </ul>