On Fri, Apr 17, 2009 at 3:57 PM, Samuel Lampa samuel.lampa.l@rilnet.com 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_notic...
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