Using POST via an HTTP Client we are having a little trouble adding some redirects to our store via the Shopify API using a Private App we created.
https://apikey:password@hostname/admin/redirects.xml
We are getting an HTTP/1.1 400 Bad Request with the following error:
<error>Extra content at the end of the document</error>
Have tried entering the sample code from Shopify API: http://api.shopify.com/redirect.xml.html#create
POST /admin/redirects.xml HTTP/1.1
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<redirect>
<path>/ipod</path>
<target>/pages/itunes</target>
</redirect>
If we do one redirect at a time it is fine if we have more than one then it fails, how do you batch redirects?