you can use sockets and formulate an http post request on your own and retrieve the output in a variable.
here is an example:
$fp = fsockopen("www.site.com", 80, $errno, $errstr, 10);
if (!$fp) {
echo "$errno: $errstr<br />";
} else {
$postdata = "var1=a&var2=b";
$req = "POST /page.php HTTP/1.0\r\n"
."Host: www.site.com\r\n"
."Content-Type: application/x-www-form-urlencoded\r\n"
."Accept: image/gif, image/x-bitmap, image/jpeg, image/pjpeg, */*\r\n"
."Content-Length: " . strlen($postdata) . "\r\n"
."\r\n"
."$postdata\r\n";
fputs($fp, $req);
while(!feof($fp)) {
$return = fgets($fp);
}
}