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, 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
> 
> Do you still think that it has to do with curl for windows?
> 
> 
> hossman wrote:
> > 
> > > "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'
> > > 
> > > I use the windows version of curl, running this statement from the
> > > curl folder where the blog.csv file resides as well.
> > 
> > my gut assumption was that you needed some whitespace in the content
> > type (ie: 'Content-type: text/plain; charset=utf-8') but i was able to
> > get this to work just fine on linux using the example setup...
> > 
> > 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?
> > 
> > 
> > -Hoss
> > 
> > 
> > 
> 
> -- View this message in context:
> http://www.nabble.com/Updating-the-index-with-a-csv-file-tp197
> 06582p19727067.html Sent from the Solr - User mailing list archive at
> Nabble.com.
> 
>

 

Reply via email to