title: Indexing documents using Solr results in Expected mime type application/octet-stream but got text/html
body: <p>What I am trying to do is to index document using Solr.</p>
  
  <p>I have installed and started Solr server on a Windows environment and I am trying to index using SolrJ.</p>
  
  <p>However when I try to add the solr document to the server as shown below it results in the an error</p>
  
  <pre><code>server.add(indexDoc);
  </code></pre>
  
  <p>Error</p>
  
  <pre><code>Error from server at http://localhost:8983/solr: Expected mime type application/octet-stream but got text/html
  
  &lt;body&gt;&lt;h2&gt;HTTP ERROR 404&lt;/h2&gt;
  &lt;p&gt;Problem accessing /solr/update. Reason:
  &lt;pre&gt;    Not Found&lt;/pre&gt;&lt;/p&gt;&lt;hr /&gt;&lt;i&gt;&lt;small&gt;Powered by Jetty://&lt;/small&gt;&lt;/i&gt;&lt;br/&gt;
  </code></pre>
  
  <p>What would be the possible reason for this issue. </p>