I should send some JSON in my Get request and the server returns some data in application/json
as response:
$url='http://example.com/var1=123&var2={'id':123,satrt:342,end:987,using:"abc"}';
and I use this code:
$client = new \GuzzleHttp\Client;
$response = $client->get($url);
$data = json_decode((string)$response->getBody(), true);
but it send a request to:
http://example.com/var1=123&var2=%7B'id':123,satrt:342,end:987,using:"abc"%7D
I see this answer about $response->getQuery()->useUrlEncoding(false)
but it do nothing.
how can I tell GuzzleHttp not to url encode the { and }?