add content type when using curl in the scripts: SOLR-250

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@543259 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2007-05-31 21:15:17 +00:00
parent a9801dde57
commit 08e2f9613f
5 changed files with 5 additions and 5 deletions

View File

@ -123,7 +123,7 @@ logMessage started by $oldwhoami
logMessage command: $0 $@
logMessage sending commit to Solr server at ${curl_url}
rs=`curl ${curl_url} -s -d "<commit/>"`
rs=`curl ${curl_url} -s -H 'Content-type:text/xml; charset=utf-8' -d "<commit/>"`
if [[ $? != 0 ]]
then
logMessage failed to connect to Solr server at ${curl_url}

View File

@ -123,7 +123,7 @@ logMessage started by $oldwhoami
logMessage command: $0 $@
logMessage sending optimize to Solr server at ${curl_url}
rs=`curl ${curl_url} -s -d "<optimize/>"`
rs=`curl ${curl_url} -s -H 'Content-type:text/xml; charset=utf-8' -d "<optimize/>"`
if [[ $? != 0 ]]
then
logMessage failed to connect to Solr server at ${curl_url}

View File

@ -108,7 +108,7 @@ start=`date +"%s"`
logMessage started by $oldwhoami
logMessage command: $0 $@
rs=`curl ${curl_url} -s -d "<commit/>"`
rs=`curl ${curl_url} -s -H 'Content-type:text/xml; charset=utf-8' -d "<commit/>"`
if [[ $? != 0 ]]
then
logMessage failed to connect to Solr server at ${curl_url}

View File

@ -109,7 +109,7 @@ start=`date +"%s"`
logMessage started by $oldwhoami
logMessage command: $0 $@
rs=`curl ${curl_url} -s -d "<optimize/>"`
rs=`curl ${curl_url} -s -H 'Content-type:text/xml; charset=utf-8' -d "<optimize/>"`
if [[ $? != 0 ]]
then
logMessage failed to connect to Solr server at ${curl_url}

View File

@ -109,7 +109,7 @@ start=`date +"%s"`
logMessage started by $oldwhoami
logMessage command: $0 $@
rs=`curl ${curl_url} -s -d "<commit/>"`
rs=`curl ${curl_url} -s -H 'Content-type:text/xml; charset=utf-8' -d "<commit/>"`
if [[ $? != 0 ]]
then
logMessage failed to connect to Solr server at ${curl_url}