<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can't access the api with header &amp;quot;Content-Type&amp;quot; in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-access-the-api-with-header-quot-Content-Type-quot/m-p/2161109#M19704</link>
    <description>&lt;P&gt;Hi Erik,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an odd situation that requires the same.&lt;/P&gt;
&lt;P&gt;our data provider has an endpoint that accepts both a post and a get request (for different purposes)&lt;/P&gt;
&lt;P&gt;I believe that behind the scenes (at my data source provider) a shortcut has been taken which results in a 415 error when i make a get request without the Content-Type header&amp;nbsp; despite it being superfluous (as there is no content being sent).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have checked the HTTP standard documentation here&amp;nbsp;&lt;A href="https://datatracker.ietf.org/doc/html/rfc7231#section-3.1.1.5" target="_blank"&gt;https://datatracker.ietf.org/doc/html/rfc7231#section-3.1.1.5&lt;/A&gt;&amp;nbsp;which seems to back up my statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is all fine but it leaves me having to tell the data source provider that their api is poorly implemented and that they need to change it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there any workarounds you can think of in this case?&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2024 13:51:38 GMT</pubDate>
    <dc:creator>Alastair_Ometis</dc:creator>
    <dc:date>2024-01-12T13:51:38Z</dc:date>
    <item>
      <title>Can't access the api with header "Content-Type"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-access-the-api-with-header-quot-Content-Type-quot/m-p/1437019#M9052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;When&amp;nbsp; I try to access the API by giving header as&amp;nbsp; "Content-Type"&amp;nbsp; with Rest connector in Qlik sense. It is giving me an error saying&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;"Get doesn't support "Content-Type" in headers."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please let me know to pass header Content-Type -- application/json in Qlik Sense while trying to access the API's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 10:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-access-the-api-with-header-quot-Content-Type-quot/m-p/1437019#M9052</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-08T10:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can't access the api with header "Content-Type"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-access-the-api-with-header-quot-Content-Type-quot/m-p/1437020#M9053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 11:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-access-the-api-with-header-quot-Content-Type-quot/m-p/1437020#M9053</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2017-11-08T11:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can't access the api with header "Content-Type"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-access-the-api-with-header-quot-Content-Type-quot/m-p/1437021#M9054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps what you want is the Accept header? Somthing like:&lt;/P&gt;&lt;P&gt;Accept: application/json&lt;/P&gt;&lt;P&gt;to tell the server that you want json.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 12:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-access-the-api-with-header-quot-Content-Type-quot/m-p/1437021#M9054</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2017-11-08T12:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can't access the api with header "Content-Type"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-access-the-api-with-header-quot-Content-Type-quot/m-p/1539954#M9962</link>
      <description>&lt;P&gt;Where to write that code?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 05:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-access-the-api-with-header-quot-Content-Type-quot/m-p/1539954#M9962</guid>
      <dc:creator>khan_imran</dc:creator>
      <dc:date>2019-02-06T05:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can't access the api with header "Content-Type"</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-access-the-api-with-header-quot-Content-Type-quot/m-p/2161109#M19704</link>
      <description>&lt;P&gt;Hi Erik,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an odd situation that requires the same.&lt;/P&gt;
&lt;P&gt;our data provider has an endpoint that accepts both a post and a get request (for different purposes)&lt;/P&gt;
&lt;P&gt;I believe that behind the scenes (at my data source provider) a shortcut has been taken which results in a 415 error when i make a get request without the Content-Type header&amp;nbsp; despite it being superfluous (as there is no content being sent).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have checked the HTTP standard documentation here&amp;nbsp;&lt;A href="https://datatracker.ietf.org/doc/html/rfc7231#section-3.1.1.5" target="_blank"&gt;https://datatracker.ietf.org/doc/html/rfc7231#section-3.1.1.5&lt;/A&gt;&amp;nbsp;which seems to back up my statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is all fine but it leaves me having to tell the data source provider that their api is poorly implemented and that they need to change it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there any workarounds you can think of in this case?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 13:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-access-the-api-with-header-quot-Content-Type-quot/m-p/2161109#M19704</guid>
      <dc:creator>Alastair_Ometis</dc:creator>
      <dc:date>2024-01-12T13:51:38Z</dc:date>
    </item>
  </channel>
</rss>

