Problem Description
Does anybody know the correct way to `post` JSON using `Guzzle`?
$request = $this->client->post(self::URL_REGISTER,array(
'content-type' => 'application/json'
),array(json_encode($_POST)));
I get an `internal server error` response from the server. It works using Chrome `Postman`.
AI-Generated Solution
Powered by LMSouq AI · GPT-4.1-mini
Analyzing problem and generating solution…
Was this solution helpful?