<?php
function get($get){
$ch = curl_init("http://www.google.com/");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo $output = curl_exec($ch);
}
get("stackoverflow");
However stackoverflow’s API
<?php
function get($get){
$ch = curl_init("http://api.$get.com/1.1/users/?filter=genesis&max=10000&min=5000");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
echo $output = curl_exec($ch);
}
get("stackoverflow");
Is it bug of SO’s API? Does this belong to Meta?
Try to add
to your code. API’s response is gzip encoded