Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Support Content-Encoding: chunked #11

Closed
rmccue opened this Issue Sep 29, 2009 · 2 comments

Comments

Projects
None yet
1 participant
Contributor

rmccue commented Sep 29, 2009

Originally reported by Iain Williamson as issue 36

When using Pie with force_fsockopen(true) certain feeds, which are parsed correctly if cURL is used, fail to parse and generate an XML Empty Document Line1 Column 1 notice.

Example of feed that fails with fsockopen : http://www.aldi.co.uk/wineblog/?feed=rss2

Basic debugging show the following:

SimplePie->init() returns false, because
if ($parser->parse($utf8_data, 'UTF-8')) returns false.

In SimplePie_Parser->parse(), its failing on the statement
if (!xml_parse($xml, $data, true))

The xml_error_code is set to 4 which is the constant
XML_ERROR_INVALID_TOKEN.

COMPATIBILITY TEST:

PHP¹ 5.2.0
XML Enabled
PCRE² Enabled
cURL Enabled
Zlib Enabled
mbstring Enabled
iconv Enabled

Platform:

Windows XP

SIMPLEPIE_VERSION 1.1
SIMPLEPIE_BUILD 20080102221556

Contributor

rmccue commented Dec 11, 2010

This is technically the feed server's fault, since we only report as being able to handle HTTP 1.0, but regardless, we should be HTTP 1.1 compliant.

Contributor

rmccue commented Jan 26, 2011

Fixed in c139579

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment