> On 1 May 2012 18:07, Fred Thu
> 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
> 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?