b4swine has asked for the wisdom of the Perl Monks concerning the following question:
When I run it, it saysuse strict; use warnings; use WordPress::XMLRPC; my $wp = WordPress::XMLRPC->new({ username => '...', password => '...', proxy => 'http://.../blog/xmlrpc.php', }); $wp->server or die; my $xx = $wp->getCategories(); print STDERR $wp->errstr if $wp->errstr; use Data::Dumper; die Dumper( $wp );
I have checked very carefully. I can log in with the username password to the website. The xmlrpc.php file is located in the blog directory. When I enter the url to xmlrpc.php, in a browser, I get "XML-RPC server accepts POST requests only." (which indicates that the url is correct). I entered the same server, username and password to "Windows Live Writer", just to check (because that must also use XMLRPC calls) and that had no problems logging in to the site. So why does this code say "bad login/pass combination"?# WordPress::XMLRPC::getCategories() - ERROR faultString, Bad login/pa +ss combination. # WordPress::XMLRPC::getCategories() - ERROR faultCode, 403 $VAR1 = bless( { 'errstr' => '# WordPress::XMLRPC::getCategories() - E +RROR faultString, Bad login/pass combination. # WordPress::XMLRPC::getCategories() - ERROR faultCode, 403 ', 'password' => '...', 'blog_id' => 1, 'server' => bless( { ...and a lot more...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Wordpress::XMLrpc problem
by Anonymous Monk on Mar 24, 2010 at 17:22 UTC | |
by b4swine (Pilgrim) on Mar 24, 2010 at 17:53 UTC | |
by Anonymous Monk on Mar 24, 2010 at 20:06 UTC |