Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response from server does not contain valid XML. #42

Open
caffedrine opened this issue Nov 26, 2013 · 1 comment
Open

Response from server does not contain valid XML. #42

caffedrine opened this issue Nov 26, 2013 · 1 comment

Comments

@caffedrine
Copy link

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 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 GetPageList() ... from WordPressWraper.cs

@caffedrine
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant