> Hi all.
> I use Perl and upload functions of MediaWiki::API and MediaWiki::Bot modules
> (last version).
> Bots don't work - returned "HTTP::Message content must be bytes at
> /usr/local/share/perl/5.10.0/HTTP/Request/Common.pm line 91".
> OS is Debian Linux.
> How to resolve this issue?
> Roman Noverlan
Can you provide the http sent and the answer from the server?
Tipically I would capture it using wireshark, then copy the contents,
remove any sensitive data (eg. replace the content of session cookies)
and strip the actual file content if it is too big.
Note that just looking at the server response may point you to the
problem better than the high-level error.
Roman Noverlan, 09/10/2011 14:37:
> Yes, you suggest call this script from Perl? In my perl script for mediawiki
> works all components but not upload
I'm not able to suggest anything, listen to Platodines for suggestions. :-)
I was just checking that you were not reinventing the wheel for some
simple task, but if it's not very simple I can't help. ;-)
seems that $ua->get returns a response object,
while "HTTP::Message content must be bytes at
/usr/local/share/perl/5.10.0/HTTP/Request/Common.pm line 91". seems to
the $response passed to $api->edit isn't the contents.
(perhaps $response->is_success() is false?)