I’m using a Perl script to post to a WordPress site using WWW::Mechanize
.
I’m thinking of making the script more robust by using an existing CPAN module like WordPress::XMLRPC
for posting content to the site.
Before I dive in, I want to be sure I will be able to add data to fields on the post form that are not generated by WordPress but by a plugin. The plugin I’m using generates a text field on the post form which accepts the URL of an MP3 file. I want to be able to input data into this field using the API.
If it’s not possible, I’ll just stick with WWW::Mechanize
.
So using
WordPress::XMLRPC
I did something like this: