showing results for - "accept header json"
Cavan
02 Aug 2019
1`Accept Header` can be used to ask the server to return
2different type of response format 
3
4For example :  
5
6`/api/xname` endpoint , support both xml and json 
7as response type so we can add accept header
8`application/xml` to get xml result and `application/json` result. 
9
10If server does not support such type ,
11it will return `406 not acceptable` status code.
queries leading to this page
accept 3a application 2fjson with headerheader accept application 2fjson exampleaccept json headerhttp header accept type jsonaccept rest ca c3 b2 c3 b2accept application jsonaccept jsonheaders accept jsonaccept header application 2fjsonaccept 3a jsonjson server responsce accept llanguage 22accept 3a json header fehlt 22accept application 2fjson header c 23api josn accept headeraccept json headersaccept content type header jsonaccept header to application 2fjsonhttp accept jsonhow to put accept in json request headerjson accept headerheader 27accept 3a application 2fjsonaccept header must be application 2fjsonheader to accept jsonheader accept jsoncors header jsonhttp header accept jsonheader accept application json text 2fplain 2a 2f 2aheaders set 28 accept application 2fjson 29request header accept jsonaccept 3a json header fehltapi header accept json 22accept 3a application 2fjson 22 headeraccept 3a application 2fjson http headerheaders add 28 accept application 2fjson 29add header accept application 2fjsonuse accept header or content type header jsonaccept headers jsonrest api header application 2fjsonhttp accept header jsonaccept header in json requesraccept and content type in rest apihttp accept header for jsonheader accept 2fjsonheader accept content type jsonheader accept application jsonheader accept application 2fjsonaccept json http reqaccept http header jsonrequests accept header must be application 2fjsonhttp headers accept jsonhow to make api use the accept headeraccept json in headeraccept header html jsonapplication 2fjson accept headeraccept type header jsonaccept header jsonheader accept json or request header accept application 2fjsonaccept application 2fjson headerhttp header to accept jsonaccept header json