texasag90 has asked for the wisdom of the Perl Monks concerning the following question:

Great Monks; I am trying to run a simple demo script from the WordPress::XMLRPC module. I am getting an error in a dependent module, and I don't even know where to begin to start to figure this out. I get the following error:
HTTP::Message content not bytes at /home/iiadmin/perl/usr/lib/perl5/si +te_perl/5.8.8/SOAP/Transport/HTTP.pm line 194 <code> I am running this script: <code> #!/usr/local/bin/perl -w use strict; use WordPress::XMLRPC; my $o = WordPress::XMLRPC->new({ username => 'xxxxxx', password => 'xxxxxx', proxy => 'http://golden.masonworld.com/wordpress/xmlrpc.php', }); my $post = $o->getPost(16); # id 16 # let's change the title $post->{title} = 'I did not like the old test post title.'; # let's save the changes back to the server.. $o->editPost(16, $post, 1); # 1 is publish
I am running on a "standard" linux cpanel 11 box:
[iiadmin@server txt2plr]$ perl -ver This is perl, v5.8.8 built for i686-linux
Any thoughts or comments would be appreciated.

Replies are listed 'Best First'.
Re: Help with WordPress:XMLRPC
by moritz (Cardinal) on Aug 26, 2008 at 17:03 UTC
    Since the code is really copied & pasted from the WordPres::XMLRPC documentation, it should really work.

    There seems to be a bug in one of the involved modules that forget to Encode::encode some data before passing it to HTTP::Message. (HTTP can only transport bytes. If you hand it a text string, HTTP::Message doesn't know what to do, and thus refuses to work with incomprehensible input data).

Re: Help with WordPress:XMLRPC
by Anonymous Monk on Aug 26, 2008 at 21:11 UTC
    upgrade WordPress::XMLRPC and all dependencies