If you're using a Windows command window, there may be trouble with single
quotes. Try instead using double quotes:
curl "http://localhost:8983/solr/update/csv"; --data-binary @blog.csv -H
"Content-type:text/plain; charset=utf-8"
On 09/29/2008 at 12:22 PM, vmaidel wrote:
>
> Thank you, guys,
Thank you, guys, but for some reason now I get different errors than before
when trying to run the example line:
curl: (1) Protocol 'http not supported or disabled in libcurl
curl: (6) Could not resolve host: text; Host not found
curl: (6) Could not resolve host: charset=utf-8'; Host not found
D
> curl 'http://localhost:8983/solr/update/csv?commit=true'
--data-binary @books.csv -H 'Content-type:text/plain; charset=utf-8'
>
> ...perhaps there is some eccentricity about windows curl?
I tried this on cygwin and books.csv could be uploaded without problems.
Koji
: "The request sent by the client was syntactically incorrect (missing content
: stream)"
that usually means either the content type wasn't set, or there was no
post data
: curl http://localhost:8983/solr/update/csv --data-binary @blog.csv -H
: 'Content-type:text/plain; charset=utf-8'
:
: