<div dir="ltr"><div><div><div><div>That earlier email was sent accidentally. There was a bit more I wanted to write.<br><br></div>We are using this command to add files to the eprint, which it does. It sends the file as an HTTP post attachment - I can see this in the headers - but the result in EPrints is an empty or unreachable file. You can try this for yourselves. <br>
</div><br></div>Anyone got experience with adding files to a pre-existing eprint using cURL?<br><br></div>Thanks,<br><br>David.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 4 March 2013 15:11, David Kane <span dir="ltr"><<a href="mailto:davidfkane@gmail.com" target="_blank">davidfkane@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Can anyone tell us what is going wrong with this command.<br>curl -X POST -i -u dkane:maggots22 --data-binary '@/var/www/test.txt' -H 'Content-Disposition: attachment; filename=test.txt22.test.txt' -H 'Content-Type: text/plain' <a href="http://witeprints/id/eprint/26/contents" target="_blank">http://witeprints/id/eprint/26/contents</a><span class="HOEnZb"><font color="#888888"><br clear="all">
<div><br>-- <br><div dir="ltr">David Kane, MSc (Econ). ILS.<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: <a href="tel:%2B%2B353.51302838" value="+35351302838" target="_blank">++353.51302838</a><br>
M: <a href="tel:%2B%2B353.876693212" value="+353876693212" target="_blank">++353.876693212</a>
</div>
</div></font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">David Kane, MSc (Econ). ILS.<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>