Hi Tim, > I've written a very small Perl tool to generate Atom multipart/related: > https://svn.eprints.org/eprints/browser/trunk/system/tools/atom_multipart.pl > > If you notice a mistake in my implementation I'd appreciate knowing :-)
I've compared that to my PHP implementation**, and have noticed the following differences: - You have 'Media Post' at the top, I did not. I notice that the examples on the atompub multipart RFC also have that, although I can't find an explanation about what it means. I have now added this to the PHP version. - I have clrf / \r\n between each chunked base64 encoded line, whereas the perl just seems to have \n. I don't know which is correct, or if it matters. - You have a blank line between the end of the chunked base64 media part, and the final boundary. I think this might be incorrect. I've no idea which is right though! :) ** https://github.com/stuartlewis/swordappv2-php-library/blob/master/packager_atom_multipart.php Cheers, Stuart Lewis Digital Development Manager Te Tumu Herenga The University of Auckland Library Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand Ph: +64 (0)9 373 7599 x81928 ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ sword-app-tech mailing list sword-app-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sword-app-tech