Skip Menu |
 

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

Report information
The Basics
Id: 100920
Status: new
Priority: 0/
Queue: CMS-MediaWiki

People
Owner: Nobody in particular
Requestors: mnemex [...] gmail.com
Cc:
AdminCc:

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



Subject: Cannot use a custom useragent
Download (untitled) / with headers
text/plain 653b
CMS-MediaWiki does not expose the user agent it uses. This means that if you need to customize your useragent in order to access a wiki (for instance, if it's behind a HTTP Auth wall), you simply cannot use CMS-Mediawiki to access that wiki without major subclassing, or more likely, just running with a slightly forked version. Better solution: Make $object->ua override the singleton. Slightly worse solution: Don't use a singleton at all, but just create and allow the user to change $object->ua. Even worse, but minimal solution (and what I've actually used to fix this): Expose $CMS::MediaWiki::ua, so the user can set it to a custom useragent.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.