On Tue, Dec 18, 2012 at 11:34 AM, Jack Krupansky <[email protected]> wrote: > I don’t get any error or any effect from this curl command: > > curl http://localhost:8983/solr/update?commit=true --data-binary ' > <delete><query>sku:td-01</query></delete>' > > But, if I add the xml header, it works fine: > > curl http://localhost:8983/solr/update?commit=true -H "Content-Type: > application/xml" --data-binary ' > <delete><query>sku:td-01</query></delete>' > > It would be nice if Solr would default to application/xml, but a friendly > error return would be better than a no-op in this case. > > FWIW, curl –v shows this header being sent if I don’t specify it explicitly: > > Content-Type: application/x-www-form-urlencoded
That does suck. The one thing I hate about curl (defaulting to that content type for everything). I think auto-detection of serialization format is generally the answer here. https://issues.apache.org/jira/browse/SOLR-3389 -Yonik http://lucidworks.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
