I'm try to below code for send request in post method with json data and header constant type : application/json
$ch_get = curl_init($url_get);
$jsonData1_get_r = array(
'customerMobileNo'=>'9040845440',
'recipientMobileNo'=>'7008565316',
'recipientName'=>'Name Test Test',
'accountNo'=>'5928374737328009',
'bankName'=>'HDFC',
'accIfsc'=>'HDFC0002058',
'transactionType'=>'IMPS',
'amount'=>'100'
);
$jsonDataEncoded_get = json_encode($jsonData1_get_r);
curl_setopt($ch_get, CURLOPT_POST, 1);
curl_setopt($ch_get, CURLOPT_POSTFIELDS, $jsonDataEncoded_get);
curl_setopt($ch_get, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($ch_get, CURLOPT_HTTPHEADER, array('Authorization: '.$token.''));
curl_setopt($ch_get, CURLOPT_RETURNTRANSFER, TRUE);
$result_get = curl_exec($ch_get);
curl_close($ch_get);
when use above code below error comes
Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported