I'm trying to fetch some data. I'm new to this PHP thing, JSON as well. When I print, it just gives me an empty array. Since I don't get any errors, I suppose everything else is fine.
$request = new WP_Http; $result = $request->request($url, $data = array()); $input = json_encode($request, true); print($input);
print_rorvar_dumpinstead ofprint$resultto see what it looks like yet?printgives me {},print_rgives me Array{},var_dumpgives me string(2)"{}"... I don't understand whatvar_dumpis trying to tell me?$result... it gives me something like this (shortened):Array ( [headers] => Array ( [server] => ZGS [date] => Wed, 12 Aug 2015 11:02:02 GMT [content-type] => text/xml;charset=utf-8 [connection] => close [set-cookie] => Array ( [0] => 2803525351=f4606535ba1c0facda8910343cc9b6d3; Path=/ [1] => JSESSIONID=6439C6713D9D9435FB1DDE14065446E6;