<div dir="ltr"><div><div><div><div>I have had to resort to praying to the EPrints angel, for the answer to this one. We are trying to write a simple PHP cURL wrapper for the eprints functionality/API in CRUD.pm. <br><br>
</div>We have got so far, but are not able to add documents. We have tried several approaches including adding a complete EP xml object, with files embedded and have tried to add only the <documents> sub object to a pre-existing eprint, using cURL.<br>
<br></div>Nothing seems to work, and I don't know what is wrong. Our latest attempt is to add the files as a POST attachment.<br><br>curl -X POST -i -u dkane:maggots22 -d 'Hello, World!' -H 'Content-Disposition: attachment; filename=/var/www/test.xml' -H 'Content-Type: text/plain' <a href="http://witeprints/id/eprint/26/contents">http://witeprints/id/eprint/26/contents</a><br>
<br></div>A lot of this is documented in <a href="http://wiki.eprints.org/w/API:EPrints/Apache/CRUD">http://wiki.eprints.org/w/API:EPrints/Apache/CRUD</a> <br><br></div><div>We are out of luck at the moment. Could it be a bug? If somebody else could try this CURL command, we'd be much obliged. We are working on EPrints 3.3.11 <br>
<br></div><div>Many thanks,<br><br>David Kane.</div><div><div><div><div><div><div><div><br>-- <br>David Kane, MLIS.<br>Systems Librarian<br>Waterford Institute of Technology<br>Ireland<br><a href="http://library.wit.ie/" target="_blank">http://library.wit.ie/</a><br>
T: ++353.51302838<br>M: ++353.876693212
</div></div></div></div></div></div></div></div>