Hello:
I'm trying to add datastreams to existing records using curl, but have
hit a snag with uploading URLs containing ampersands to dsLocation. This
is what I would have expected with the & character, but using "%26"
instead results in a "6" in the final URL. After trying some other
encoded characters it seems, at some point in the upload, that the "%2"
is stripped off and the result is the third character of the encoded
string. If you substitute "%2B" for the plus signs in the following
command, for example, the result is "B".

Command is as follows:
curl -i -H "Content-type: text/html" -XPOST
"http://endure.dur.ac.uk:8080/fedora/objects/UkDhU:9f5aa474-67c6-4ad9-af
85-683bd577ba52/datastreams/BOOKPAGE?dsLabel=View+page+in+book&controlGr
oup=R&dsLocation=http://reed.dur.ac.uk:8080/metsnav/sadsir/navigate.do?p
n=2%26size=full%3Eoid=http://endure.dur.ac.uk:8080/fedora/get/UkDhU:c54f
280d-bb28-4179-86e9-f2e049e9e003/METS" -u user:password

Version is Fedora 3.2

Is this a Fedora problem?
Thanks
- - - - -
# Richard Higgins
# Durham University Library
# Archives & Special Collections
# Palace Green
# Durham
# DH1 3RN
# E-Mail: [email protected] 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to