[wp-trac] [WordPress Trac] #2567: XML-RPC returns incorrect content length header when using metaWeblog.getRecentPosts

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 21 19:14:19 UTC 2012


#2567: XML-RPC returns incorrect content length header when using
metaWeblog.getRecentPosts
-------------------------------------------+------------------------------
 Reporter:  dasher@…                       |       Owner:  anonymous
     Type:  defect (bug)                   |      Status:  closed
 Priority:  normal                         |   Milestone:  Awaiting Review
Component:  XML-RPC                        |     Version:  1.5
 Severity:  major                          |  Resolution:  wontfix
 Keywords:  xml-rpc                        |
-------------------------------------------+------------------------------

Comment (by wonderboymusic):

 No, removing the Content-Length header - here's the original:

 {{{
     function output($xml)
     {
         $xml = '<?xml version="1.0"?>'."\n".$xml;
         $length = strlen($xml);
         header('Connection: close');
         header('Content-Length: '.$length);
         header('Content-Type: text/xml');
         header('Date: '.date('r'));
         echo $xml;
         exit;
     }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/2567#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list