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

Support "Accept" request header as alternative to "wt" parameter

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Server

      Description

      Spinoff from email

      Advertises which content types, expressed as MIME types, the client is able to understand
      https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept

      Could replace or at least be an alternative to “wt”. Examples:
      Accept: application/xml
      Accept: text/csv

      Issue: Most browsers sends a long accept header, typically application/xml,text/html,/, and now
      that json is default for Solr, we’d need to serve JSON if the accept header includes “/"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                janhoy Jan Høydahl
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: