php - Guzzle give me weird json response -
i'm using guzzle make post request , send parameters.
here's code:
$client = new client(); $url = $this->my_url; $client->setsslverification(false,false,0); $request = $client->post($url,null,array( "param1" => $param1, 'param2' => $param2 )); $postbody = $request->getbody(); $response = $client->send($request); $body = $response->getbody(); echo $body;
i return (json) when i'm doing echo:
int 1 {"response":true}
and of course, can't json_decode
on it.
don't understand why can't , why have "int 1"
before it.
any ideas issue?
Comments
Post a Comment