[
https://issues.apache.org/jira/browse/SOLR-7405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14497796#comment-14497796
]
Jan Høydahl commented on SOLR-7405:
-----------------------------------
I'm with Yonik here. We're talking about *documentation*, and we can clearly
document the content-type requirement for HTTP POST, as well as the simplified
way of using cURL. In the very first cURL example in the refguide we can
include content-type, but then introduce the shorter notation in an info-box
and stick to the short form for the rest of the refguide.
> Update ref guide curl examples to eliminate Content-Type
> --------------------------------------------------------
>
> Key: SOLR-7405
> URL: https://issues.apache.org/jira/browse/SOLR-7405
> Project: Solr
> Issue Type: Improvement
> Components: documentation
> Reporter: Hoss Man
> Priority: Minor
>
> SOLR-7217 added a special work arround to solr to autodetect the correct
> content-type if the user-agent indicates curl is in use and the content-type
> specified is the curl default ("application/x-www-form-urlencoded")
> while this is certianly a nice to have convenience for people who forget to
> specify a Content-Type when using curl, there was quite a bit of back and
> forth on the ref guide TODO page about wether all example curl calls in the
> ref guide should explicitly take advantage of this for brevity.
> I'm opening this issue in the interest of having a more structured place for
> this discussion.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]