Michael Thompson <michaelnt@...> writes:
>
>
> On 1 May 2012 18:07, Fred Thu
<
fred.thu@...> wrote:
> Hi,
> I've tried creating a new Variant for hours through Curl, without success. I
> have a document, ID 779, created with Default language and I'm trying to create
> the French version.
> What's wrong in this?
> curl --basic --user myuser:mypassword --form startBranch=1 --form
> startLanguage=1 --form startVersion=-1 --form newBranch=1 --form
newLanguage=2http://myserver.com:9263/repository/document/779
> I just get back "<?xml version="1.0" encoding="UTF-8"?>
> <ns:error xmlns:ns="
http://outerx.org/daisy/1.0"><ns:description>The required
> field named "xml" is missing.</ns:description></ns:error>"
> (I tried many other ways to write this Post...)
> Doc says "Creating a new variant based on an existing variant is rather
> different. In this case no XML body or multipart-request must be done, but a
> POST operation with the following request parameters:"
>
>
> seems like it is expecting a multipart form with a section called xml, perhaps
the url is different for creating variants?
>
> Have you tried running wireshark to capture the data between the repository
and the wiki it's a bit messy?
Thanks for your answer - no, I didn't try to setup a proxy, the code runs on a
server so it might be difficult.
I guess that something is wrong - but is it in my code, in the documentation or
in the code ? It would help it someone can post a working code for this.
Fred
_______________________________________________
daisy community mailing list
Professional Daisy support:
http://outerthought.org/en/services/daisy/support.htmlmail to:
daisy@...
list information:
http://lists.cocoondev.org/mailman/listinfo/daisy