Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

cURL method imageGraph garbage characters

$
0
0

@Kiusau wrote:

Does anyone see anything in the following code that would cause the requested information to be returned as junk characters, rather than the intended graph?

$url = 'https://www.nudge.online/_utilities/php/matomo/index.php?
    module=API
  &method=ImageGraph.get
  &idSite=1
  &apiModule=Referrers
  &apiAction=getReferrerType
  &token_auth=...my token...
  &period=day
  &date=2018-04-10,2018-05-09';

  $curl_request = curl_init();
  curl_setopt($curl_request, CURLOPT_URL, $url);
  curl_setopt($curl_request, CURLOPT_ENCODING, '');
  curl_exec($curl_request);
  curl_close($curl_request);


Sample of displayed characters returned:

�PNG  IHDR"�f� IDATx���yxde�����T����JR�=�N��Jw�4-�� ��(�sQ��(W�Gň���s�ޙ+à>W��� "nW����(([c�F���IwW��$U���>��-���V...

Roddy

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles