You can simulate the post method using php without the help of curl library.
download full source code:
OpenID Integration PHP

See the code below:

function dopostrequest($url, $data, $optionalheaders = null) { $params = array('http' =>; array('method' =>; 'POST', 'content' =>; $data )); if ($optionalheaders ! null) { $params['http']['header'] = $optionalheaders; } $ctx = streamcontextcreate($params); $fp = @fopen($url, 'rb', false, $ctx); if (!$fp) { throw new Exception("Problem with $url, $phperrormsg"); } $response = @streamgetcontents($fp); if ($response = false) { throw new Exception("Problem reading data from $url, $php_errormsg"); } return $response; } ?>

Download the full source code from postwithoutcurl.zip