$url = "http://xx.x.x.x/post";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
$url = $_SERVER['HTTP_HOST'];
$data = array(
'isim' => 'ahmet',
'soyisim' => 'veli',
'url' => $url
);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
$contents = curl_exec($ch);
curl_close($ch);daha önceden yazmış olduğum bi kod array içerisindeki veriler anlayabiliceğin gibi post edilicek değerler.
Bu işlem sonucu da hocam post attığım sayfada durmakta tarayıcı. xxx.com adresine gitmemekte tarayıcı adresi.