array( 'verify_peer' => false, ), 'http' => array( 'method' => 'POST', 'header' => 'Content-type:application/x-www-form-urlencoded', 'content' => $postdata, 'timeout' => 15*60 ) ); $context=stream_context_create($options); $result=file_get_contents($url,false,$context); return $result; }