有没有人知道post使用JSON 的正确方法Guzzle?
$request = $this->client->post(self::URL_REGISTER,array(
'content-type' => 'application/json'
),array(json_encode($_POST)));
Run Code Online (Sandbox Code Playgroud)
我收到internal server error服务器的回复.它适用于Chrome Postman.