Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/316.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python和pubsubhubbub_Python_Websub - Fatal编程技术网

Python和pubsubhubbub

Python和pubsubhubbub,python,websub,Python,Websub,我编写了一个快速http服务器脚本,首先确认订阅并接收更新。我能够验证订阅并开始接收更新。使用这种方法,我可以将更新后的提要项目打印到控制台上,但谷歌的订户诊断系统称接收失败 这还不够吗 这在BaseHTTPServer.BaseHTTPRequestHandler子类的处理程序类中 def do_POST(self): self.send_response(202) self.end_headers() stuff = self.rfile.read() pri

我编写了一个快速http服务器脚本,首先确认订阅并接收更新。我能够验证订阅并开始接收更新。使用这种方法,我可以将更新后的提要项目打印到控制台上,但谷歌的订户诊断系统称接收失败

这还不够吗 这在BaseHTTPServer.BaseHTTPRequestHandler子类的处理程序类中

def do_POST(self):
    self.send_response(202)
    self.end_headers()
    stuff = self.rfile.read()
    print stuff

谢谢。

所以状态代码为204似乎很好。我猜是因为我的回答中没有尸体?不管怎样,现在工作很好

如果有人知道我为什么需要那个特殊的状态码,我会非常乐意得到评论。说明书上写的是2xx