: I'm having a strange problem when indexing data through our application. : Whenever I post something to the update resource, I get : : Unexpected character 'a' (code 97) in prolog; expected '<' at [row,col {unknown-source}]: [1,1], <html> ... : However, when I post the same data from an xml file using curl it works.
...thta's pretty much a dead give away that your application isn't posting the exact same XML as the curl command. You might try using a packet sniffer, or an HTTP Proxy that logs all the details of the requests to see what exactly your application is sending over the wire and how it differs from curl. -Hoss