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

Multipart/mixed usage in GSP test suite.

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Fri, 16 Nov 2012 18:34:50 +0000
Message-ID: <50A6874A.7020807@epimorphics.com>
To: SPARQL Working Group <public-rdf-dawg@w3.org>
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?

	Andy


With

curl -F "name=graphs" -F "name=@D1.ttl;type=text/turtle" -F 
"name=@D2.ttl;type=text/turtle"  http://localhost:3030/ds/person/1.ttl

I get multi form-data sections:

=====================================================================
Content-Length = 515
Content-Type = multipart/form-data; 
boundary=----------------------------b48c32e4e430

------------------------------b48c32e4e430
Content-Disposition: form-data; name="name"

graphs
------------------------------b48c32e4e430
Content-Disposition: form-data; name="name"; filename="D1.ttl"
Content-Type: text/turtle

@prefix : <http://example/> .

:s :p 1 .
:s :p 2 .

------------------------------b48c32e4e430
Content-Disposition: form-data; name="name"; filename="D2.ttl"
Content-Type: text/turtle

@prefix : <http://example/> .

:s :p 3 .

------------------------------b48c32e4e430--
=====================================================================

note only one boundary name

while the test has a multipart/mixed inside a multipart/form-data using 
attachments and only one form-data section.


=====================================================================
Content-type: multipart/form-data, boundary=AaB03x

--AaB03x
content-disposition: form-data; name="graphs"
Content-type: multipart/mixed, boundary=BbC04y

--BbC04y
Content-disposition: attachment; filename="lastName.ttl"
Content-type: text/turtle

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
<http://$HOST$/person/1> foaf:familyName "Doe"
--BbC04y
Content-disposition: attachment; filename="firstName.ttl"
Content-type: text/turtle

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
<http://$HOST$/person/1> foaf:givenName  "Jane"
--BbC04y
--AaB03x
=====================================================================
Received on Friday, 16 November 2012 18:35:18 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:49 GMT