第一个代码:
if(isset($_GET["hub_challenge"])) {
echo $_GET["hub_challenge"];
}
else {
}
$feeded = $_POST['feed'];
$ch = curl_init("http://pubsubhubbub.appspot.com");
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch,CURLOPT_POSTFIELDS,"hub.mode=subscribe&hub.verify=async&hub.callback=http://rssreaderbg.net/pubsubbub/example/index.php?url=$feeded&hub.topic=$feeded");
curl_exec($ch);
回调代码:
file_put_contents("logmeme.txt",$HTTP_RAW_POST_DATA,FILE_APPEND);
它无法到达回调网址或?
答案 0 :(得分:0)
尝试在回应挑战之前明确将标题设置为2xx。
header('HTTP/1.1 204 "No Content"', true, 204);