Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

mlingidi
New Contributor II

Can't access the api with header "Content-Type"

Hi,

When  I try to access the API by giving header as  "Content-Type"  with Rest connector in Qlik sense. It is giving me an error saying

"Get doesn't support "Content-Type" in headers."

Please let me know to pass header Content-Type -- application/json in Qlik Sense while trying to access the API's.

Thanks,

Murali

1 Solution

Accepted Solutions
erik_wetterberg
Honored Contributor

Re: Can't access the api with header "Content-Type"

Perhaps what you want is the Accept header? Somthing like:

Accept: application/json

to tell the server that you want json.

Hope this helps

Erik Wetterberg

Erik Wetterberg
https://extendingqlik.upper88.com/
2 Replies
Employee
Employee

Re: Can't access the api with header "Content-Type"

I don't think you're supposed to use the content-type header for GET methods. GET method calls doesn't have any contents, so it doesn't really make sense there. You'll probably get a content-type header in your response though.

erik_wetterberg
Honored Contributor

Re: Can't access the api with header "Content-Type"

Perhaps what you want is the Accept header? Somthing like:

Accept: application/json

to tell the server that you want json.

Hope this helps

Erik Wetterberg

Erik Wetterberg
https://extendingqlik.upper88.com/
Community Browser