EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #01641


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: cURL commands failing


That earlier email was sent accidentally.  There was a bit more I wanted to write.

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. 

Anyone got experience with adding files to a pre-existing eprint using cURL?

Thanks,

David.


On 4 March 2013 15:11, David Kane <davidfkane@gmail.com> wrote:
Hi Can anyone tell us what is going wrong with this command.
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' http://witeprints/id/eprint/26/contents

--
David Kane, MSc (Econ). ILS.
Systems Librarian
Waterford Institute of Technology
Ireland
http://library.wit.ie/
T: ++353.51302838
M: ++353.876693212



--
David Kane, MSc (Econ). ILS.
Systems Librarian
Waterford Institute of Technology
Ireland
http://library.wit.ie/
T: ++353.51302838
M: ++353.876693212