[wp-trac] Re: [WordPress Trac] #2567: XMLRPC returns incorrect
content length header when using metaWeblog.getRecentPosts
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 14 09:50:38 GMT 2006
#2567: XMLRPC returns incorrect content length header when using
metaWeblog.getRecentPosts
-----------------------+----------------------------------------------------
Id: 2567 | Status: new
Component: XML-RPC | Modified: Tue Mar 14 09:50:38 2006
Severity: major | Milestone:
Priority: highest | Version: 1.5
Owner: anonymous | Reporter: dasher at inspiredthinking.co.uk
-----------------------+----------------------------------------------------
Changes (by westi):
* keywords: WPMU => bg|reporter-feedback WPMU
Comment:
The content-length is returned by IXR based on strlen($xml) in class-
IXR.php:
{{{
354 function output($xml) {
355 $xml = '<?xml version="1.0"?>'."\n".$xml;
356 $length = strlen($xml);
357 header('Connection: close');
358 header('Content-Length: '.$length);
359 header('Content-Type: text/xml');
360 header('Date: '.date('r'));
361 echo $xml;
362 exit;
363 }
}}}
Not sure how this could fail to return the correct content-length - we
could of course remove the content-length header as it is not required.
What content-length are you expecting to be returned in this case.
--
Ticket URL: <http://trac.wordpress.org/ticket/2567>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list