Chrome's Advanced REST client: Setting a GET request to "Accept: application/json"

43,304

Add Accept: application/json in the Raw / Form / Headers field.

Share:
43,304

Related videos on Youtube

Abdull
Author by

Abdull

Updated on September 18, 2022

Comments

  • Abdull
    Abdull over 1 year

    I'm using the Chrome app Advanced REST client, Version 3.1.1.

    When I issue a GET request, Advanced Rest Client sets the request header with Accept: */*.

    How can I issue a GET request with a request header including Accept: application/json?

    This option seems to be provided for POST requests, but not for GET requests.

    • ale
      ale about 11 years
      This site is not about programming web apps. Please read the FAQ.
    • Abdull
      Abdull about 11 years
      Hm, "If your question generally covers [...] browsers and their features relating to the use of a web application (Greasemonkey scripts for a web application, etc.) [...] then you’re in the right place to ask your question!" ... I'm using (not programming) in my question, no?
    • Andrew Lott
      Andrew Lott about 11 years
      You aren't asking a question about a Web Application, but about a Chrome extension. Unless you're asking about how this works with a specific Web App...?
    • killermist
      killermist about 11 years
      Advanced REST client is a Chrome/Chromium extension?
    • harrymc
      harrymc about 11 years
      Does adding Content-Type: application/json; charset=utf-8 change the result?
    • Abdull
      Abdull about 11 years
      @harrymc : Wait a second! You gave me a good idea... trying Accept: application/json in the Raw / Form / Headers field... sending request. That works! Thank you! ... feel free to post this as an answer! ( here is a usecase: "get JSON from hibernate-example.cloudfoundry.com/library/books"
    • harrymc
      harrymc about 11 years
      It is good that the problem is solved, but the solution is yours to write.