Skip Menu |

This queue is for tickets about the MediaWiki-API CPAN distribution.

Report information
The Basics
Id: 41052
Status: resolved
Priority: 0/
Queue: MediaWiki-API

People
Owner: Nobody in particular
Requestors: DCOLLINS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.19
Fixed in: (no value)



Subject: sub api should return the original HTTP::Response object on success
It would be extremely helpful if, on success, you could have sub api return not only the decoded json but a second parameter containing the HTTP::Response object, allowing for awesome stuff like cookie extraction to be done. Perlwikipedia uses a WWW::Mech object and I'd like to have both objects log in under one request, however I can't give the cookies to the WWW::Mech object unless I have MediaWiki::API's HTTP::Response object. Not time-critical, since I've got an ugly but working hack up for now. Thanks!!
On Tue Nov 18 21:33:25 2008, DCOLLINS wrote: Show quoted text
> It would be extremely helpful if, on success, you could have sub api > return not only the decoded json but a second parameter containing the > HTTP::Response object, allowing for awesome stuff like cookie extraction
The response object can now be found in MediaWiki::API->{response} after doing an api call (whether successful or not). This is implemented in version 0.20 which will be available on cpan shortly