EPrints Technical Mailing List Archive
Message: #01643
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Adding files to an eprint using cURL
- To: "EPrints.org Technical List" <eprints-tech@ecs.soton.ac.uk>
- Subject: [EP-tech] Adding files to an eprint using cURL
- From: David Kane <dkane@wit.ie>
- Date: Tue, 5 Mar 2013 09:34:52 +0000
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.
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.curl -X POST -i -u dkane:maggots22 -d 'Hello, World!' -H 'Content-Disposition: attachment; filename=/var/www/test.xml' -H 'Content-Type: text/plain' http://witeprints/id/eprint/26/contents
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
Many thanks,
David Kane.
David Kane.
--
David Kane, MLIS.
Systems Librarian
Waterford Institute of Technology
Ireland
http://library.wit.ie/
T: ++353.51302838
M: ++353.876693212
- Prev by Date: [EP-tech] Are Closed Access Deposits Indexed by Google Scholar?
- Next by Date: [EP-tech] Re: Adding files to an eprint using cURL
- Previous by thread: [EP-tech] Are Closed Access Deposits Indexed by Google Scholar?
- Next by thread: [EP-tech] Re: Adding files to an eprint using cURL
- Index(es):