Time Nick Message 17:39 pdurbin https://developers.google.com/gdata/articles/using_cURL has a nice example of using curl with "Content-Type: application/atom+xml" 17:40 pdurbin I'm doing something like curl --insecure --data-binary "@metadata.xml" -H "Content-Type: application/atom+xml" https://sword:sword@localhost:8181/foo/bar/baz 19:03 pdurbin hmm... but how do I post multipart with curl? 19:09 semiosis -F 19:09 semiosis pdurbin: 19:11 pdurbin semiosis: hmm, "This option can be used multiple times" ... sounds good... 19:12 pdurbin I've been using --data-binary: https://github.com/IQSS/dvn/blob/483856509cfeb45b37aad171c5f4597bc935a79a/tools/scripts/data-deposit-api/test-collection 19:14 pdurbin ah ha. here's the guy's multipart.dat: https://github.com/BibApp/sword2ruby/blob/master/test/fixtures/multipart.dat 19:14 pdurbin I'm looking at this post of his: chunked Transfer-Encoding forbidden - http://mail-archives.apache.org/mod_mbox/abdera-user/201104.mbox/%3C4DA98E5B.1000208@gmail.com%3E 19:29 pdurbin and looking at curl -i --http1.0 --data-binary "@multipart.dat" -H 'Content-Type: multipart/related; boundary="===============0670350989=="' -H "MIME-Version: 1.0" sword:sword@[Col-URI] at https://github.com/swordapp/Simple-Sword-Server 19:29 pdurbin looks like the same multipart.dat file is in that repo (same md5sum): https://github.com/swordapp/Simple-Sword-Server/blob/master/tests/resources/multipart.dat 19:30 pdurbin but I'm getting org.apache.commons.fileupload.MultipartStream$MalformedStreamException: Header section has more than 10240 bytes (maybe it is not properly terminated) 19:40 pdurbin well, at least I can reproduce it in my minimal vagrant environment 19:48 semiosis what is SWORD? 19:48 semiosis ah, this: SWORD is a lightweight protocol for depositing content from one location to another. It stands for Simple Web-service Offering Repository Deposit and is a profile of the Atom Publishing Protocol (known as APP or ATOMPUB). 19:48 semiosis http://swordapp.org/about/ 19:49 semiosis still kinda wondering what it is tho 19:49 semiosis Is it a replacement for WebDAV? 19:49 semiosis or FTP? 19:49 semiosis :) 19:51 pdurbin :) 19:51 pdurbin one sec 19:51 pdurbin just filed a bug for myself about this: MalformedStreamException with Content-Type: multipart/related · Issue #2 · dvn/swordpoc - https://github.com/dvn/swordpoc/issues/2 19:52 pdurbin semiosis: http://en.wikipedia.org/wiki/SWORD_%28protocol%29 20:04 pdurbin semiosis: everyone seems to ask that... isn't this just WebDAV? :) 20:24 * pdurbin posts to the sword list: [sword-app-tech] deposit.isMultipart() and multipart.dat (sword2-server-1.0-classes.jar, MultipartStream$MalformedStreamException) - http://www.mail-archive.com/sword-app-tech@lists.sourceforge.net/msg00324.html 20:25 semiosis side note, servlet 3 supports multipart, no need for apache commons multipart anymore 20:26 pdurbin hmm 20:27 pdurbin semiosis: it's what sword2-server-1.0-classes.jar uses, which I'm compiling from https://github.com/swordapp/JavaServer2.0 20:29 pdurbin all in all it's extremely helpful having that library. it's guiding me in implementing the spec 21:35 pdurbin semiosis: ah, I'm not crazy, dude just replied on the mailing list with a link to this: Best as I can tell, commons-fileupload doesn't actually handle multipart... · 5458968 · mediashelf/sword2-server - https://github.com/mediashelf/sword2-server/commit/5458968f7d4e73c76bd35c18f6d4102d99663db3 21:40 pdurbin semiosis: replied to the guy (Eddie) and linked to your comment about servlet 3