On Fri, Apr 17, 2009 at 3:57 PM, Samuel Lampa <[email protected]> wrote: > I'm having some troubles can't post article content via API that is > bigger than ~5420 bytes. 5420 bytes works, but 5454 bytes fails. > And the problem is that I don't get any result or error message back. > > Anyone had similar problems? > Is there some general size limit for posting through the API, that I'm > exceeding? (Strange though that I don't get an error message)
This might be due to the Squid changes detailed at https://secure.wikimedia.org/wikipedia/en/wiki/Wikipedia:Bot_owners%27_noticeboard/Archive_4#Squid_Changes You are probably receiving a 417 HTTP header in return. Try adding "Expect:" to your array of HTTP headers, so the following needs to go in cURLHandle(): $this->headers[] = 'Expect:'; Sam -- Sam PGP public key: http://en.wikipedia.org/wiki/User:Sam_Korn/public_key _______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
