简体   繁体   English

关闭Wordpress RSS feed的分块编码?

[英]Turn off chunked encoding for Wordpress RSS feed?

Firstly sorry if this has been answered elsewhere, but I can't find anything close to this. 首先,很抱歉,如果在其他地方已经回答了这个问题,但是我找不到与此相似的任何东西。

For various reasons, I am importing an RSS feed into flash to get its content. 由于各种原因,我将RSS feed导入到flash中以获取其内容。 Everything works fine, except that I can't get the size of the RSS file when loading it (via URLLoader and getBytesTotal . After some research I found that the feed itself it chunked, which as I understand it (and I am a novice at this!) means flash (evidently) can't access the file size of the feed because of the way it's being transferred. So my question is, can I turn this chunked encoding off , either on the server or in flash? 一切正常,除了加载时我无法获得RSS文件的大小(通过URLLoadergetBytesTotal 。经过一些研究后,我发现feed本身已分块,据我所知(我是新手)这!)意味着Flash(显然)由于传输的方式而无法访问Feed的文件大小。所以我的问题是, 可以在服务器上还是在Flash中关闭此分块编码

Failing this, is it possible to write some server code (perhaps php) that would periodically download and store the feed itself as a regular XML file? 失败了,是否有可能编写一些服务器代码(也许是php)来定期下载和存储提要本身作为常规XML文件?

Apologies if this post is vague, I'm very unfamiliar with this topic and there isn't any relevant code. 抱歉,如果这篇文章含糊不清,我对这个主题非常陌生,并且没有任何相关代码。

To receive "normal" output, send out an HTTP/1.0 request instead of an HTTP/1.1 in Flash. 要接收“正常”输出,请在Flash中发出HTTP / 1.0请求而不是HTTP / 1.1。 This forces the server to respond with an HTTP/1.0 response. 这将强制服务器以HTTP / 1.0响应进行响应。 HTTP/1.0 will never respond with chunked encoding, because HTTP/1.0 does not support chunked encoding. HTTP / 1.0永远不会使用分块编码进行响应,因为HTTP / 1.0不支持分块编码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM