Has accessing data from an HTTP call changed? I'm sure (I think) that this (cut down example) worked fine before updating to 5.2
Now json_decode complains that it needs a string not a stream.
How do I get this to be a string? Surely I don't have to write it to a file and get it back out????
Code:
$hQuery = new HttpFactory();$request = $hQuery->getHttp();$response = $request->get($url, $headers);$dates = json_decode($response->body);
How do I get this to be a string? Surely I don't have to write it to a file and get it back out????
Statistics: Posted by MarkRS — Fri Oct 18, 2024 2:38 pm