W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > October to December 2012

Re: Multipart/mixed usage in GSP test suite.

From: Chime Ogbuji <chimezie@gmail.com>
Date: Mon, 19 Nov 2012 20:18:10 -0500
To: Andy Seaborne <andy.seaborne@epimorphics.com>
Cc: SPARQL Working Group <public-rdf-dawg@w3.org>
Message-ID: <FC5D2C10A247415DA947A0D2D15DF688@gmail.com>
Hey Andy, see my response inline below. 

On Friday, November 16, 2012 at 1:34 PM, Andy Seaborne wrote:
> Chime,
> I have having problems with the multipart POST test. I have tried 
> creating a multipart form POST with curl and also from a HTML form 
> inside chrome. I'm not getting the format of the test. I don't get use 
> for multipart/mixed inside a multipart/form-data.
> Which tool did you use to create the test example?
The test example is a hand-crafted version of the multipart form data here:


The actual multipart form content that the validator sends to the protocol instance is at the bottom of this email.  It was easier
to use the tool to construct a multi-part form request from the components of the request than from the verbatim request as it is in the test example.  

The tool is called poster [1] and it doesn't seem to use multipart/mixed as shown in the HTML 4 documentation.  

However, that document says "If multiple files are to be returned as the result of a single form entry, they should be returned as 'multipart/mixed' embedded within the 'multipart/form-data'".  

Content-Disposition: form-data; name="lastName.ttl"; filename="lastName.ttl"
Content-Type: text/turtle; charset=utf-8

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
< .. person/1 ..> foaf:familyName "Doe"

Content-Disposition: form-data; name="firstName.ttl"; filename="firstName.ttl"
Content-Type: text/turtle; charset=utf-8

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
< .. person/1 .. > foaf:givenName "Jane"


[1] http://atlee.ca/software/poster/
Chime Ogbuji

Sent with Sparrow (http://www.sparrowmailapp.com) 
Received on Tuesday, 20 November 2012 01:18:40 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:01:08 UTC