what's the format of article data, xml dump or just plain text?
On Tue, Oct 20, 2009 at 10:01 PM, 李琴 q...@ica.stc.sh.cn wrote:
Hi,
I have already got the article data from the wikipedia and I stored it
on my computer .Now I want to add the article to the local wiki. I have
done a lot
Hi,
I want to use the new Upload-API. I have seen that I cannot upload per URL
to Commons because I (my bot) haven't the
upload_by_url right. So I change my tool to the file argument:
$new_file = Name of the target file;
$url = URL of the source file;
$desc = Description;
$filename = Name of the
On Wed, Oct 21, 2009 at 12:15 PM, Jan Luca j...@jans-seite.de wrote:
[...]
Content-Type: multipart/form-data
Content-Length: .strlen($file).
Content-Disposition: form-data; name=\.$filename.\;
filename=\.$filename.\
.$file.
\r\n\r\n;
You do set your content-type to multipart/form-data, but
On 21/10/2009, at 11:15 AM, Jan Luca wrote:
Hi,
I want to use the new Upload-API. I have seen that I cannot upload
per URL
to Commons because I (my bot) haven't the
upload_by_url right. So I change my tool to the file argument:
Why are you building an HTTP request by yourself? Use a
Hi,
is Content-Length: the other header, too`
Other header e.g:
--abc
Content-Disposition: form-data; name=%s; filename=%s
Content-Type: application/octet-stream
Viele Grüße
Jan
-Ursprüngliche Nachricht-
Von: wikitech-l-boun...@lists.wikimedia.org
Hi,
On Wed, Oct 21, 2009 at 12:37 PM, Jan Luca j...@jans-seite.de wrote:
is Content-Length: the other header, too`
It is in my experience and as far as I am aware not necessary. Please
see RFC2388 [1] for more information. What usually also helps is
sniffing your browser traffic (Firebug under
Liangent wrote:
what's the format of article data, xml dump or just plain text?
Plain text.
There are other tools for importing from xml format.
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
Bryan Tong Minh bryan.tongm...@gmail.com wrote in message
news:fd5886130910210324l409d2cc6m31831366ae4bb...@mail.gmail.com...
On Wed, Oct 21, 2009 at 12:15 PM, Jan Luca j...@jans-seite.de wrote:
[...]
Content-Type: multipart/form-data
Content-Length: .strlen($file).
Content-Disposition:
On Wed, Oct 21, 2009 at 4:29 PM, Russell Blau russb...@hotmail.com wrote:
--abc
Content-Disposition: form-data; name=%s; filename=%s
Content-Type: application/octet-stream
What is the second %s in the above line? Is this instead of having a
separate form-data element with name=filename, or
[adding mediawiki-api since this seems to be more relevant to that list]
Bryan Tong Minh bryan.tongm...@gmail.com wrote:
On Wed, Oct 21, 2009 at 4:29 PM, Russell Blau russb...@hotmail.com wrote:
--abc
Content-Disposition: form-data; name=%s; filename=%s
Content-Type: application/octet-stream
2009/10/21 Russell Blau russb...@hotmail.com:
So, basically, the API for action=upload is (a) not compliant with RFC 2388,
and (b) failing with a misleading error message when the client fails to
supply a parameter that isn't used at all?
Neither of these is true. The filename parameter
11 matches
Mail list logo