Hi there,
I noticed that the XML-RPC API sends out the wrong content-type: Actually, it sends no such header at all, making PHP send out the default text/html. There are quite many blogging applications (I used the TextMate blogging bundle) that refuse to work correctly if the right content-type is not used.
I worked around the problem by adding "header('Content-Type: text/xml');" to serendipity_xmlrpc.php (it felt better setting the header there instead of in the plugin, but this breaks the error-message displayed if the plugin is not installed).
I frankly don't have a clue what the clean solution for this would be, but my "hack" fixed my problems with the blogging bundle of TextMate (MarsEdit still doesn't work, btw).
Philip
XMLRPC and Content-Type
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: XMLRPC and Content-Type
Hi!
Are you sure about that? Because the XML-RPC PEAR API actually should send the Content-Type and Content-Length header together with the returned XML...
Which s9y version and plugin version are you using? And are you using the XML-RPC PEAR files shipped with the plugin or custom ones?
Best regards,
Garvin
Are you sure about that? Because the XML-RPC PEAR API actually should send the Content-Type and Content-Length header together with the returned XML...
Which s9y version and plugin version are you using? And are you using the XML-RPC PEAR files shipped with the plugin or custom ones?
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/