JoeBlogs icon indicating copy to clipboard operation
JoeBlogs copied to clipboard

Response from server does not contain valid XML.

Open caffedrine opened this issue 11 years ago • 1 comments

Hi mate.

I Have a problem, I get unhandled error:

"Response from server does not contain valid XML."

When try to execute simple code like:

string url = this.maskedTextBox2.Text; string username = this.maskedTextBox3.Text; string password = this.maskedTextBox4.Text;

WordPressWrapper wp = new WordPressWrapper(url, username, password); IEnumerable<PageMin> pages = wp.GetPageList();

foreach (PageMin page in pages) { MessageBox.Show(page.ToString()); }

If I acces www.website.com/xmlrpc.php i get this: XML-RPC server accepts POST requests only.

So, where the problem could be?

PS: When get error the VS is pointing me to this funrction: public IEnumerable<PageMin> GetPageList() ... from WordPressWraper.cs

caffedrine avatar Nov 26 '13 23:11 caffedrine

I have solved this stupid problem which took 20 hours from my life.

The url must be like: http://site.com/xmlrpc.php In my url just missed xmlrpc.php from url.

caffedrine avatar Nov 27 '13 13:11 caffedrine