كود PHP:
function send_post($data,$url)
{
$header =
"POST /text.php4 HTTP/1.1\n" .
"Host: $url\n" .
"(anti-spam-(anti-spam-(anti-spam-content-type:))) application/x-www-form-urlencoded\n" .
"Content-Length: " . strlen($data) . "\n\n" .
$data . "\n";
$s = socket_create(AF_INET, SOCK_STREAM, 0);
$z = socket_connect($s, gethostbyname("$url"), 80);
socket_write ($s, $header, strlen($header));
$header = "";
while (true) {
if (strlen($c = socket_read($s, 1))) {
$header .= $c;
}
}
socket_close($s);
print nl2br(htmlspecialchars($header));
}
حل آخر باستخدام مكتبة curl
كود PHP:
function send_post($data,$url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://$url");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "$data");curl_exec ($ch);
curl_close ($ch);
}
وافضّل الحل الثاني اذا كانت مكتبة curl مركبة على السيرفر 
طبعاً بترسل الداتا بهذا الشكل :
كود PHP:
name=ahmed&text=mohammed&example=example