You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Eric Pugh (Jira)" <ji...@apache.org> on 2026/09/20 01:00:00 UTC

[jira] [Created] (SOLR-18460) Ensure all curl commands follow the same pattern

Eric Pugh created SOLR-18460:
--------------------------------

             Summary: Ensure all curl commands follow the same pattern
                 Key: SOLR-18460
                 URL: https://issues.apache.org/jira/browse/SOLR-18460
             Project: Solr
          Issue Type: Sub-task
          Components: documentation
            Reporter: Eric Pugh


We have a number of ways of describing a curl command.  In [https://github.com/apache/solr/pull/4177] I noticed that our curl pattenrs just in the indexing pages are all over the place.

We want our curl examples use this order:

 

  curl 'URL' \

    -H 'Content-Type: application/json' \

    -H 'Other-Header: value' \

    -d 'request body'

 

  For updates:

  1. curl

  2. URL, including query parameters

  3. Request headers

  4. -d or --data-binary request body

 

  Because -d implies POST, we omit -X POST.

 

And no "$" attempting to simulate a terminal!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org