Selam
$url = "localhost/send";
$headers = [ 'Content-Type: application/json; Cache-Control: no-cache' ];
$POST = [ 'param1' => $value1, 'param2' => $value2];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($POST));
$response = curl_exec($ch);
Hocam aslında sorum,
Nodejs express konfigirasyonu içindi
içerisinde nasıl bir config tasarlayıp.
bu şekilde istek gönderilecek hale getirmeliyim şeklinde