Policy talk:User-Agent policy: Difference between revisions

From Wikimedia Foundation Governance Wiki
Latest comment: 11 years ago by 76.246.52.64 in topic Does my bot need a bot user agent?
Content deleted Content added
Anomie (talk | contribs)
Line 18: Line 18:
[[Special:Contributions/76.246.45.128|76.246.45.128]] 02:36, 28 March 2013 (UTC)
[[Special:Contributions/76.246.45.128|76.246.45.128]] 02:36, 28 March 2013 (UTC)
: Yes. [[User:Anomie|Anomie]] ([[User talk:Anomie|talk]]) 12:39, 28 March 2013 (UTC)
: Yes. [[User:Anomie|Anomie]] ([[User talk:Anomie|talk]]) 12:39, 28 March 2013 (UTC)
:: Ok, thanks. It has a bot user agent now :) [[Special:Contributions/76.246.52.64|76.246.52.64]] 03:55, 4 April 2013 (UTC)

Revision as of 03:55, 4 April 2013

I'm trying to run a script to collect some data from Wikipedia for the first time and I've run into this measure. Is there any way I could see the format of the user_agent string that Wikimedia expects so as to properly format my settings? I tried a vernacular description, but still ended up with the "give a descriptive user agent" response. Elijahmeeks 02:05, 11 April 2011 (UTC)Reply

Never mind, I didn't realize I had to set it in curl instead of as the usual initialization.Elijahmeeks 02:26, 11 April 2011 (UTC)Reply

Posting

Strangely enough, I get the message about a temporary server problem unless I take out this line:

curl_setopt($ch,CURLOPT_POST,TRUE);

Not sure why that might be. Leucosticte (talk) 09:26, 4 August 2012 (UTC)Reply

"temporary server problem" is strange indeed, but i bet it is "you're sending a POST request when the server expect a GET request". Divinity76 (talk) 12:43, 12 March 2013 (UTC)Reply

Does my bot need a bot user agent?

I'm working on an irc bot. I want to make it have a command !wikipedia <something>. The command will print the first 300 or so letters of the wikipedia article on <something>. As it will just read data from pages, do I need a bot user agent? Thanks. 76.246.45.128 02:36, 28 March 2013 (UTC)Reply

Yes. Anomie (talk) 12:39, 28 March 2013 (UTC)Reply
Ok, thanks. It has a bot user agent now :) 76.246.52.64 03:55, 4 April 2013 (UTC)Reply