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


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to