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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.