You just send data as plain text. I just found the solution. You can use the code.
$data=”Your data”;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, “YOUR URL” );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt($ch, CURLOPT_POST, 1 );
curl_setopt($ch, CURLOPT_POSTFIELDS, $data );
curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘Content-Type: text/plain’));
$result=curl_exec ($ch);
curl_close($ch);
Question and answer is powered by AnsPress.io