gturri / aXMLRPC

A lightweight Java XML-RPC client for the use with Android. Since there is absolutely no dependency to any android specific library (and I assure, that it never will have any), it also works fine in normal Java applications. Read the README.md file for more information.
www.timroes.de
MIT License
145 stars 74 forks source link

Override Content-Type #144

Closed scirocco-gt closed 8 months ago

scirocco-gt commented 8 months ago

The latest DokuWiki release 2024-02-06a “Kaos” responds to XMLRPC calls with “XML-RPC server accepts XML requests only.”

If the content-type is changed from "text/xml" to "application/xml", it works again. -> https://www.dokuwiki.org/devel:xmlrpc:clients#sample_curl_client

But the content-type cannot be overwritten with "setCustomHttpHeader".

gturri commented 8 months ago

Thanks for this bug report.

According to the xmlrpc specification the correct content-type is text/xml. I will hence close this issue, and suggest that you open a bug report on Dokuwiki instead. (that being said, if you want to create a pull request in order to make this header configurable, I'll have a look at it)

scirocco-gt commented 8 months ago

ok, thanks for your quick response!

scirocco-gt commented 8 months ago

There is already a bug report. Thank you for your time!