When using get method it is working properly whereas when converting it to post it returns different html in response than the expected page html. return_to is always empty in our case. Is there anything missing
$curl = curl_init();
$postData = json_encode(['jwt' => $token,'return_to'=>$return_to]);$x= mb_strlen($postData);
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://yoursubdomain.zendesk.com/access/jwt',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 60,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>$postData,
));
$response = curl_exec($curl);