title: PHP CURL shows no "content_type" with Basic Auth
body: <p>The same code works ok in two enviroments (localhost and local develop) but not in the 3rd (prod). The 3rd is a VPS. I have to use basic auth with the API that I'm connecting.</p>
  
  <p>This is my code:</p>
  
  <pre><code>$curl = curl_init();
  //For basic auth
  curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
  curl_setopt($curl, CURLOPT_USERPWD, "SomeUsername:AndItPass");
  curl_setopt($curl, CURLOPT_URL, $url);
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($curl, CURLOPT_TIMEOUT, 10);
  curl_setopt($curl, CURLOPT_HTTPHEADER, array(
      'Content-Type: application/json',
  ));
  $result = curl_exec($curl);
  dump($curl);die();
  </code></pre>
  
  <p>The output of <code>dump($curl);die();</code> when works ok (like in localhost) is:</p>
  
  <pre><code>curl resource @61 ▼
    url: "http://XXXXX:8089/api/usuarios/login?perfil=2&amp;rutPoem=76279543&amp;rut=18863583"
    content_type: "application/json; charset=utf-8"
    http_code: 200
    header_size: 259
    request_size: 194
    filetime: -1
    ssl_verify_result: 0
    redirect_count: 0
    total_time: 0.022104
    namelookup_time: 3.9E-5
    connect_time: 0.008342
    pretransfer_time: 0.008463
    size_upload: 0.0
    size_download: 251.0
    speed_download: 11355.0
    speed_upload: 0.0
    download_content_length: 251.0
    upload_content_length: -1.0
    starttransfer_time: 0.022072
    redirect_time: 0.0
    redirect_url: ""
    primary_ip: "XXXXXXXX"
    certinfo: []
    primary_port: 8089
    local_ip: "192.168.4.108"
    local_port: 64594
  }
  </code></pre>
  
  <p>But in the VPS I got this:</p>
  
  <pre><code>curl resource @345 ▼
    url: "http://XXXXX:8089/api/usuarios/login?perfil=2&amp;rutPoem=76279543&amp;rut=18863583"
    content_type: null
    http_code: 0
    header_size: 0
    request_size: 0
    filetime: -1
    ssl_verify_result: 0
    redirect_count: 0
    total_time: 0.200986
    namelookup_time: 0.000126
    connect_time: 0.0
    pretransfer_time: 0.0
    size_upload: 0.0
    size_download: 0.0
    speed_download: 0.0
    speed_upload: 0.0
    download_content_length: -1.0
    upload_content_length: -1.0
    starttransfer_time: 0.0
    redirect_time: 0.0
    redirect_url: ""
    primary_ip: ""
    certinfo: []
    primary_port: 0
    local_ip: ""
    local_port: 0
  }
  </code></pre>
  
  <p>What is happening? I have "null" if I do a <code>dump(curl_error($curl));</code></p>