Policy talk:User-Agent policy: Difference between revisions

From Wikimedia Foundation Governance Wiki
Latest comment: 11 years ago by Leucosticte in topic Posting
Content deleted Content added
No edit summary
→‎Posting: new section
Line 1: Line 1:
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. [[User:Elijahmeeks|Elijahmeeks]] 02:05, 11 April 2011 (UTC)
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. [[User:Elijahmeeks|Elijahmeeks]] 02:05, 11 April 2011 (UTC)
:Never mind, I didn't realize I had to set it in curl instead of as the usual initialization.[[User:Elijahmeeks|Elijahmeeks]] 02:26, 11 April 2011 (UTC)
:Never mind, I didn't realize I had to set it in curl instead of as the usual initialization.[[User:Elijahmeeks|Elijahmeeks]] 02:26, 11 April 2011 (UTC)

== Posting ==

Strangely enough, I get the message about a temporary server problem unless I take out this line:
<source lang="php">
curl_setopt($ch,CURLOPT_POST,TRUE);
</source>
Not sure why that might be. [[User:Leucosticte|Leucosticte]] ([[User talk:Leucosticte|talk]]) 09:26, 4 August 2012 (UTC)

Revision as of 09:26, 4 August 2012

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