<?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: REST Connector GET Method with Body in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-GET-Method-with-Body/m-p/1907076#M10404</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;A GET request with a body wouldn't be a very standard way as per the HTTP protocol standards, I believe.&lt;/P&gt; 
&lt;P&gt;It's currently not supported in the Qlik REST connector to have those kind of requests.&lt;/P&gt; 
&lt;P&gt;You could log a feature request here if you need such a feature and Qlik Product Management will review it:&lt;BR /&gt; &lt;A href="https://community.qlik.com/t5/Suggest-an-Idea/idb-p/qlik-ideas" target="_blank"&gt;https://community.qlik.com/t5/Suggest-an-Idea/idb-p/qlik-ideas&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards,&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2022 15:53:09 GMT</pubDate>
    <dc:creator>Damien_V</dc:creator>
    <dc:date>2022-03-18T15:53:09Z</dc:date>
    <item>
      <title>REST Connector GET Method with Body</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-GET-Method-with-Body/m-p/1906545#M10395</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I'm trying use the REST Connector to make a GET request with a XML body,&amp;nbsp;but it seems that Qlik doesn't allow this option.. is there any workaround?&lt;/P&gt;
&lt;P&gt;Making the same request with Postman&amp;nbsp; or CURL works fine. (here i add the header parameter "Content-Type application/json" that Qlik don't allow me use in GET method.)&lt;/P&gt;
&lt;P&gt;My Request:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;RestConnectorMasterTable:
SQL SELECT 
	"ack",
	"__KEY_promoCoreResponse"
FROM
	XML "promoCoreResponse" PK "__KEY_promoCoreResponse"
WITH CONNECTION (
	URL "$(vURL)",
    HTTPHEADER "Authorization" "Bearer $(vAccess_token)",
	HTTPHEADER "Accept" "*/*",
    BODY "$(vBody)"
);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My Body:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;promoCoreRequest&amp;gt;
&amp;lt;operation&amp;gt;getPromotions&amp;lt;/operation&amp;gt;
&amp;lt;companyId&amp;gt;****&amp;lt;/companyId&amp;gt;
&amp;lt;params&amp;gt;
&amp;lt;/params&amp;gt;
&amp;lt;/promoCoreRequest&amp;gt;;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CURL command&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;curl -v -X GET -H "Authorization: Bearer *****" -H "Accept: */*" -d "&amp;lt;promoCoreRequest&amp;gt;&amp;lt;operation&amp;gt;getPromotions&amp;lt;/operation&amp;gt;&amp;lt;companyId&amp;gt;****&amp;lt;/companyId&amp;gt;&amp;lt;params&amp;gt;&amp;lt;/params&amp;gt;&amp;lt;/promoCoreRequest&amp;gt;" -H "Content-Type: application/json" -o "output.txt" http://****/promo/api/rest/promotions&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 13:53:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-GET-Method-with-Body/m-p/1906545#M10395</guid>
      <dc:creator>wedersoncabrla</dc:creator>
      <dc:date>2022-03-17T13:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: REST Connector GET Method with Body</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-GET-Method-with-Body/m-p/1907076#M10404</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;A GET request with a body wouldn't be a very standard way as per the HTTP protocol standards, I believe.&lt;/P&gt; 
&lt;P&gt;It's currently not supported in the Qlik REST connector to have those kind of requests.&lt;/P&gt; 
&lt;P&gt;You could log a feature request here if you need such a feature and Qlik Product Management will review it:&lt;BR /&gt; &lt;A href="https://community.qlik.com/t5/Suggest-an-Idea/idb-p/qlik-ideas" target="_blank"&gt;https://community.qlik.com/t5/Suggest-an-Idea/idb-p/qlik-ideas&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 15:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/REST-Connector-GET-Method-with-Body/m-p/1907076#M10404</guid>
      <dc:creator>Damien_V</dc:creator>
      <dc:date>2022-03-18T15:53:09Z</dc:date>
    </item>
  </channel>
</rss>

