See this, too: http://lists.wikimedia.org/pipermail/wikitech-l/2011-January/050958.html
When I try to upload a file with the API, I get this error:
Request: [unknown method] [no URL], from <my IP> via
amssq35.esams.wikimedia.org (squid/2.7.STABLE7) to [unknown host]
([unknown])
Error: ERR_INVALID_REQ, errno [No Error] at Sun, 02 Jan 2011 09:43:01 GMT
The source code of the program, you can get at: http://svn.toolserver.org/svnroot/p_commonshelper2/truck/ . The request is in the method upload() in the upload_class.php.
Version: unspecified
Severity: major
OS: Windows Vista
Platform: PC