In general I would extend this: "you should never rely on other
programmers assuming they did things correctly because we are lazy
morons"
On Thu, Jun 19, 2014 at 5:48 PM, Petr Bena <benapetr(a)gmail.com> wrote:
At some point it makes sense. You shouldn't rely
on servers :P I am
placing token as last per this suggestion.
On Thu, Jun 19, 2014 at 5:42 PM, Happy Melon <happy.melon.wiki(a)gmail.com> wrote:
> Blame Reedy [1]. Or ask him for clarification...
>
> --HM
>
> [1]
>
https://www.mediawiki.org/w/index.php?title=API:Edit&diff=410992&ol…
>
>
> On 19 June 2014 14:27, Bartosz Dziewoński <matma.rex(a)gmail.com> wrote:
>
>> On Thu, 19 Jun 2014 15:16:22 +0200, MZMcBride <z(a)mzmcbride.com> wrote:
>>
>> Petr Bena wrote:
>>>
>>>> Can this parameter be anywhere in the url? for example
>>>> api.php?action=query&assert=user&prop=blabla or does it need to
be on
>>>> a specific position, like token?
>>>>
>>> It can be anywhere after "api.php", but not anywhere in the URL.
>>> I don't believe any token requires a specific position in a URL.
>>>
>>
>> Yeah… The API documentation mentions this, but I think it's wrong or at
>> least misleading.
>>
>>
https://www.mediawiki.org/wiki/API:Edit#Token
>>
>> "When passing this to the Edit API, always pass the token parameter last
>> (or at least after the text parameter). That way, if the edit gets
>> interrupted, the token won't be passed and the edit will fail."
>>
>> I'm reasonably sure that the HTTP and HTTPS protocols are smart enough to
>> recognize "cut off" requests, and that any servers whatsoever are
smart
>> enough to implement this behavior.
>>
>>
>> --
>> Matma Rex
>>
>>
>> _______________________________________________
>> Wikitech-l mailing list
>> Wikitech-l(a)lists.wikimedia.org
>>
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l(a)lists.wikimedia.org
>
https://lists.wikimedia.org/mailman/listinfo/wikitech-l