函数.file-get-contents无法打开流:http请求失败


function.file-get-contents failed to open stream : http request failed

我有一个从URL获取内容的php文件,我收到了失败消息"Warning:file_get_contents"(http://cc.frifon.net/_dosmssend)[函数.file获取内容]:无法打开流:HTTP请求失败!HTTP/1.1 404在C:''examplep''htdocs''SMS''cuba.php第24行未找到bool(false)'

这是我的代码:

        <?php
            $url = 'http://cc.frifon.net/_dosmssend';
            $data = array('sip' => '60146600472', 'uuid' => 
           '503AEE00-FB59-4868-B293-0FA4FFC17ACB', 'pwd' => '233443959918', 
           'key' => 'key', 'to' => 'to', 'message' => 'message' );
           // use key 'http' even if you send the request to https://...
           $options = array(
           'http' => array(
           'header'  => "Content-type: application/x-www-form-urlencoded'r'n",
           'method'  => 'POST',
           'content' => http_build_query($data),
           ),
           );
           $context  = stream_context_create($options);
           $result = file_get_contents($url, false, $context);
           var_dump($result);
           ?>

这是因为您提供了一个不存在的URL

http://cc.frifon.net/_dosmssend

返回404