Php 确认订阅时出现PUBSUBB错误

Php 确认订阅时出现PUBSUBB错误,php,websub,Php,Websub,我使用以下代码: <?php if(isset($_GET["hub_challenge"])) { echo $_GET["hub_challenge"]; } else { } $ch = curl_init("http://pubsubhubbub.appspot.com"); curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch,CURLOPT_POSTFIELDS,"hub.mode=subscribe&hub.ve

我使用以下代码:

<?php
if(isset($_GET["hub_challenge"])) {
echo $_GET["hub_challenge"];
}
else {

}
$ch = curl_init("http://pubsubhubbub.appspot.com");
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch,CURLOPT_POSTFIELDS,"hub.mode=subscribe&hub.verify=sync&hub.callback=http://rssreaderbg.net/pubsubbub/example/index.php&hub.topic=http://rssreaderbg.net/blog/?feed=comments-rss2");
curl_exec($ch);

file_put_contents("logmeme.txt",$HTTP_RAW_POST_DATA);


?><?php
if(isset($_GET["hub_challenge"])) {
echo $_GET["hub_challenge"];
}
else {

}
$ch = curl_init("http://pubsubhubbub.appspot.com");
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch,CURLOPT_POSTFIELDS,"hub.mode=subscribe&hub.verify=sync&hub.callback=http://rssreaderbg.net/pubsubbub/example/index.php&hub.topic=http://rssreaderbg.net/blog/?feed=comments-rss2");
curl_exec($ch);

file_put_contents("logmeme.txt",$HTTP_RAW_POST_DATA);


?>


但是pubsubbub.appspot.com上的中心告诉我“确认订阅时出错”,为什么?

最简单的解决方案是自己尝试执行订阅验证。
将GET请求发送到回调函数,参数为。确保您的回调返回2XX,并且只回显集线器提供的
集线器。挑战

最简单的解决方案是尝试自己执行子描述验证。
将GET请求发送到回调函数,参数为。确保您的回调返回2XX,并且只回显集线器提供的
hub.challenge

有一些延迟,我没有注意到。现在它工作了。谢谢!有一些延迟,我没有注意到。现在它工作了。谢谢!