Imagine you are browser. Here comes some thoughts to improve your imagination:
<?php
$tosend = "a=val&b=super&c=aaa";
$server = 'www.gsmoperator.net';
$port = 80;
$topost =
"POST /cgi-bin/sms.pl HTTP/1.0
User-Agent: Opera/5.11 (Windows 95; U) [en]
Host: $server
Accept: text/html, image/png, image/jpeg, image/gif, image/x-xbitmap, /
Accept-Language: en
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Referer: http://www.somehost/somepage.html
Connection: Keep-Alive
Content-type: application/x-www-form-urlencoded
Content-Length: ".strlen($tosend)."
$tosend\r\n";
$ns = @fsockopen($server,$port) or die("SERVER IS DOWN.");
@fputs($ns,$topost);
@fclose($ns);
?>