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

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -