Guzzle not stopping data from Redirect:
The following guzzle request not preventing redirects always show status 200 while I have tried with postman it returns 302:
$response = $client->request(
'GET',
$Url,
['query' => $body],
[
'headers' => [
'Content-Type' => 'application/x-www-form-urlencoded'
]
],
['allow_redirects' => FALSE]
);
$responseHomeNetworkAPI = $response;
echo $response->getStatusCode();