You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2015/03/12 12:04:38 UTC

[jira] [Comment Edited] (SOLR-7217) Auto-detect HTTP body content-type

    [ https://issues.apache.org/jira/browse/SOLR-7217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14358486#comment-14358486 ] 

Yonik Seeley edited comment on SOLR-7217 at 3/12/15 11:03 AM:
--------------------------------------------------------------

Right, so the logic is to autodetect when there is no content-type or if the client is curl with the default that curl adds.


was (Author: yseeley@gmail.com):
Right, so the logic is to autodetect if there is no content-type or if the client is curl.

> Auto-detect HTTP body content-type
> ----------------------------------
>
>                 Key: SOLR-7217
>                 URL: https://issues.apache.org/jira/browse/SOLR-7217
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Yonik Seeley
>
> It's nice to be able to leave off the specification of content type when hand crafting a request (i.e. from the command line) and for our documentation examples.
> For example:
> {code}
> curl http://localhost:8983/solr/query -d '
> {
>   query:"hero"
> }'
> {code}
> Note the missing 
> {code}
> -H 'Content-type:application/json'
> {code}
> that would otherwise be needed everywhere



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org