I am writing a tool to assist me in the deletion of images after they have been moved to the Commons, but I'm getting a User Agent error. How do I get my particular user agent unblocked?
The user agent I have set is:
W2WCDA/0.1 (Linux; PHP5 Curl; Wikipedia to Wikimedia Commons Deletion Assistant; +http://www.allyunion.com/wikipedia/; w:en:User:AllyUnion; jylee AT cs.ucr.edu)/PHP5-CURL/5.3.2-1ubuntu4.2
Thank you,
Jason Y. Lee AKA AllyUnion, Wikipedia English Administrator
Tim Starling <tstarling <at> wikimedia.org> writes:
On 25/08/10 08:37, Jason Y. Lee wrote:
How do I get my particular user agent unblocked?
It's not blocked. The error message you reported on IRC is only shown when the User-Agent header is missing, a different error would be shown if it were blocked.
I'm still getting the error for some reason.
Main page is: http://www.allyunion.com/wikipedia/index.php
The tool will curl the appropriate pages, change the links so it stays with in the tool's interface, so like this is suppose to work: http://www.allyunion.com/wikipedia/index.php?q=Category:Wikipedia_files_with...
Code here: http://pastebin.com/nPir75nL
Thanks,
Jason Y. Lee
I wrote:
On 25/08/10 08:37, Jason Y. Lee wrote:
How do I get my particular user agent unblocked?
It's not blocked. The error message you reported on IRC is only shown when the User-Agent header is missing, a different error would be shown if it were blocked.
It turns out that the relevant source code stored the user agent in a global variable, but the "global" statement was missing from the relevant functions, so it was effectively doing:
curl_setopt($ch, CURLOPT_USERAGENT, null);
-- Tim Starling
Tim Starling <tstarling <at> wikimedia.org> writes:
It turns out that the relevant source code stored the user agent in a global variable, but the "global" statement was missing from the relevant functions, so it was effectively doing:
curl_setopt($ch, CURLOPT_USERAGENT, null);
Oh, thanks Tim! Ya, that fixed the problem.
I appreciate the help.
- Jason Lee
wikitech-l@lists.wikimedia.org