title: cURL request getting wrong request version in Google App Engine
body: <p>I have a cURL request in my code which works fine when running locally:</p>
  
  <pre><code>$url = "http://ipinfo.io/{$_SERVER['REMOTE_ADDR']}";
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_HEADER, 0);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_TIMEOUT, 10);
  $response = curl_exec($ch);
  $locale = json_decode($response);
  </code></pre>
  
  <p>and returns a JSON as expected. Our production system is on Google App Engine, however, where I get the website version for a browser rather than the JSON. </p>
  
  <p>I can get this cURL request to work if I change</p>
  
  <pre><code>google_app_engine.enable_curl_lite = "1"
  </code></pre>
  
  <p>in the <code>php.ini</code> in the root directory of my project to</p>
  
  <pre><code>extension = "curl.so"
  </code></pre>
  
  <p>but Google's <a href="https://cloud.google.com/appengine/docs/php/config/php_ini" rel="nofollow">documentation</a> insists the former is to be used on production. Additionally, using the latter breaks things like Monolog's SlackHandler.</p>
  
  <p>Is there a way to get the JSON from this cURL request while still using Google's "cURL Lite"?</p>