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.
Related videos on Youtube
Author by
Abdull
Updated on September 18, 2022Comments
-
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 about 11 yearsThis site is not about programming web apps. Please read the FAQ.
-
Abdull about 11 yearsHm, "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 about 11 yearsYou 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 about 11 yearsAdvanced REST client is a Chrome/Chromium extension?
-
harrymc about 11 yearsDoes adding
Content-Type: application/json; charset=utf-8
change the result? -
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 about 11 yearsIt is good that the problem is solved, but the solution is yours to write.
-