Roman Noverlan wrote:
Example of code, don't work: http://dpaste.com/hold/632543/
Reading http://search.cpan.org/~gaas/libwww-perl-6.03/lib/LWP/UserAgent.pm it 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 hint that the $response passed to $api->edit isn't the contents. (perhaps $response->is_success() is false?)
On Fri, Oct 14, 2011 at 18:53, Roman Noverlan roman.noverlan@gmail.com wrote:
Example of code, don't work: http://dpaste.com/hold/632543/
First, you probably want "$response->decoded_content()", and second, you want to make sure that $response is a scalar rather than a reference or undef.
wikibots-l@lists.wikimedia.org