<?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 Publish app with QRS API gives XSRF error in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-app-with-QRS-API-gives-XSRF-error/m-p/1166315#M5652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to write a simple .NET method to publish an existing app to a stream. The path that I used with QRS API is as below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;qrs/app/ee227e84-a2b0-4ba7-b9ec-9fe3d1718308/publish?stream=6f287d6f-3e6f-4a5e-9857-3d800e99da28?xrfkey=0123456789abcdef&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it keeps giving me XSRF error ("XSRF prevention check failed. Possible XSRF discovered.") no matter I tested with Postman or from my own code, both of which I included the Header "X-Qlik-Xrfkey" with the same value &lt;SPAN style="font-size: 13.3333px;"&gt;0123456789abcdef&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a lot of other Qs API calls that used the same testing mechanism, but they all passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything wrong with my query above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Mengyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2016 07:46:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-28T07:46:14Z</dc:date>
    <item>
      <title>Publish app with QRS API gives XSRF error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-app-with-QRS-API-gives-XSRF-error/m-p/1166315#M5652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to write a simple .NET method to publish an existing app to a stream. The path that I used with QRS API is as below:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;qrs/app/ee227e84-a2b0-4ba7-b9ec-9fe3d1718308/publish?stream=6f287d6f-3e6f-4a5e-9857-3d800e99da28?xrfkey=0123456789abcdef&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it keeps giving me XSRF error ("XSRF prevention check failed. Possible XSRF discovered.") no matter I tested with Postman or from my own code, both of which I included the Header "X-Qlik-Xrfkey" with the same value &lt;SPAN style="font-size: 13.3333px;"&gt;0123456789abcdef&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a lot of other Qs API calls that used the same testing mechanism, but they all passed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything wrong with my query above?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Mengyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-app-with-QRS-API-gives-XSRF-error/m-p/1166315#M5652</guid>
      <dc:creator />
      <dc:date>2016-07-28T07:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Publish app with QRS API gives XSRF error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-app-with-QRS-API-gives-XSRF-error/m-p/1166316#M5653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed, there is one typo that causes this failure.&lt;/P&gt;&lt;P&gt;You use two times the ? question mark. The second should become an &amp;amp;, right?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;qrs/app/ee227e84-a2b0-4ba7-b9ec-9fe3d1718308/publish?stream=6f287d6f-3e6f-4a5e-9857-3d800e99da28&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;EM&gt;&amp;amp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;xrfkey=0123456789abcdef&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 09:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-app-with-QRS-API-gives-XSRF-error/m-p/1166316#M5653</guid>
      <dc:creator />
      <dc:date>2016-07-28T09:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Publish app with QRS API gives XSRF error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-app-with-QRS-API-gives-XSRF-error/m-p/1166317#M5654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friebel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help! It is working perfectly.&lt;/P&gt;&lt;P&gt;I used 2 question marks because the reference &lt;A href="https://help.qlik.com/en-US/sense-developer/2.2/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-App-Publish.htm"&gt;here&lt;/A&gt; used a question mark before "stream".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please bear with me if this is a silly question, but it has been on my mind for a while.&lt;/P&gt;&lt;P&gt;When shall I use question mark and when shall I use &amp;amp; sign in a query?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Mengyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 14:26:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-app-with-QRS-API-gives-XSRF-error/m-p/1166317#M5654</guid>
      <dc:creator />
      <dc:date>2016-07-28T14:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Publish app with QRS API gives XSRF error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-app-with-QRS-API-gives-XSRF-error/m-p/1166318#M5655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The query is separated by the ? from the path. Inside a query can be numerous key=value-pairs which are separated by &amp;amp;. That's basically it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I strongly suggest you take some time to get deeper into the HTTP-thing as you will have to deal with it more often when using the REST apis. Maybe start here: &lt;A href="http://code.tutsplus.com/tutorials/http-the-protocol-every-web-developer-must-know-part-1--net-31177" title="http://code.tutsplus.com/tutorials/http-the-protocol-every-web-developer-must-know-part-1--net-31177"&gt;http://code.tutsplus.com/tutorials/http-the-protocol-every-web-developer-must-know-part-1--net-31177&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 06:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-app-with-QRS-API-gives-XSRF-error/m-p/1166318#M5655</guid>
      <dc:creator />
      <dc:date>2016-07-29T06:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Publish app with QRS API gives XSRF error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-app-with-QRS-API-gives-XSRF-error/m-p/1166319#M5656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Thomas (sorry for getting the name wrong last time). It really helps a great deal!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 06:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-app-with-QRS-API-gives-XSRF-error/m-p/1166319#M5656</guid>
      <dc:creator />
      <dc:date>2016-07-29T06:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Publish app with QRS API gives XSRF error</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-app-with-QRS-API-gives-XSRF-error/m-p/1166320#M5657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your question is now answered, please flag the Correct Answer (via the big "Correct Answer" button near every post) and Helpful Answers (found under the Actions menu under every post).&lt;/P&gt;&lt;P&gt;If not, please make clear what part of this topic you still need help with &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 08:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Publish-app-with-QRS-API-gives-XSRF-error/m-p/1166320#M5657</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-07-29T08:04:21Z</dc:date>
    </item>
  </channel>
</rss>

