Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-7217

Auto-detect HTTP body content-type for curl

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1
    • Component/s: None
    • Labels:
      None

      Description

      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:

      curl http://localhost:8983/solr/query -d '
      {
        query:"hero"
      }'
      

      Note the missing

      -H 'Content-type:application/json'
      

      that would otherwise be needed everywhere

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yseeley@gmail.com Yonik Seeley
                Reporter:
                yseeley@gmail.com Yonik Seeley
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: