W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > April 2010

Re: Posting multipart/form-data

From: Alex Milowski <alex@milowski.org>
Date: Sat, 10 Apr 2010 09:20:14 +0100
Message-ID: <u2r28d56ece1004100120if7ecd109o785cd1b7cb68cef0@mail.gmail.com>
To: public-xml-processing-model-wg@w3.org
Am I missing something or did we not do this action:

   http://www.w3.org/2010/01/07-xproc-minutes.html#action01

You need that for this request.

The boundary should be handled by the encoding so you should have:

<c:request method="POST" href="http://api.flickr.com/services/upload">
<c:multipart content-type="multipart/form-data">
<c:body disposition='form-data; name="api-key"'>3632623532453245</c:body>
<c:body disposition='form-data; name="auth_token"'>436436545</c:body>
<c:body disposition='form-data; name="api-token"'>43732850932746573245</c:body>
<c:body disposition='form-data;; name="photo"; filename="C:\test.jpg"'
content-type="image/jpeg"  encoding="base64">{base64 encoding of image
data}</c:body>
</c:multipart>
</c:request>

On Fri, Apr 9, 2010 at 10:33 PM, Norman Walsh <ndw@nwalsh.com> wrote:
> Is it possible to write an http-request step which will perform
> this post:
>
> POST /services/upload/ HTTP/1.1
> Content-Type: multipart/form-data; boundary=---------------------------7d44e178b0434
> Host: api.flickr.com
> Content-Length: 35261
>
> -----------------------------7d44e178b0434
> Content-Disposition: form-data; name="api_key"
>
> 3632623532453245
> -----------------------------7d44e178b0434
> Content-Disposition: form-data; name="auth_token"
>
> 436436545
> -----------------------------7d44e178b0434
> Content-Disposition: form-data; name="api_sig"
>
> 43732850932746573245
> -----------------------------7d44e178b0434
> Content-Disposition: form-data; name="photo"; filename="C:\test.jpg"
> Content-Type: image/jpeg
>
> {RAW JFIF DATA}
> -----------------------------7d44e178b0434--
>
>                                        Be seeing you,
>                                          norm
>
> --
> Norman Walsh <ndw@nwalsh.com> | Every new beginning comes from some
> http://nwalsh.com/            | other beginning's end.
>



-- 
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics
Received on Saturday, 10 April 2010 08:20:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 April 2010 08:20:48 GMT