<?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: Using Web.Contents with No Authorization header in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Using-Web-Contents-with-No-Authorization-header/m-p/1008057#M22957</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/219723"&gt;@paulo_zip&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try the &lt;STRONG&gt;null&lt;/STRONG&gt;. For a quick sample I tried the below it's worked for me&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
Source = Table.FromColumns({Lines.FromBinary(Web.Contents("https://testik.free.beeceptor.com/my/api/path"), null, null, 1252)})
in
Source&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Apr 2020 12:55:15 GMT</pubDate>
    <dc:creator>Jayendran</dc:creator>
    <dc:date>2020-04-04T12:55:15Z</dc:date>
    <item>
      <title>Using Web.Contents with No Authorization header</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Web-Contents-with-No-Authorization-header/m-p/1005181#M22934</link>
      <description>&lt;P&gt;Hi Everyone.&lt;/P&gt;&lt;P&gt;I'm creating a custom connector for Power BI using Power Query/M Language on Visual Studio. In the final step of my connector, it will use Web.Contents() to retrieve a presigned file in Amazon S3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since it's a presigned file, my request CAN NOT have an Authorization Header, otherwise, it will return an error. The problem is that I'm not able to make the following call without Authorization header:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;results = Web.Contents(file_download_url)&lt;/PRE&gt;&lt;P&gt;I know that the function Web.Contents() have an Authorization parameter, so I could use something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;results = Web.Contents(file_download_url, [Headers = [Authorization = "ANYTHING HERE"]])&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;However, I can't pass an empty Authorization parameter&lt;/STRONG&gt;. If I use the default value, it will send a Basic Authorization, which will not work, due to the presigned file won't return with an Authorization header.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;One interesting thing to notice is that, if I copy the file URL and paste it into Power BI, it works&lt;/STRONG&gt;, because Power BI doesn't send Authorization header on the request (I've double-checked it using Fiddler).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does anybody know how to send a request without the Authorization header?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 15:34:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Web-Contents-with-No-Authorization-header/m-p/1005181#M22934</guid>
      <dc:creator>paulo_zip</dc:creator>
      <dc:date>2020-04-02T15:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using Web.Contents with No Authorization header</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Using-Web-Contents-with-No-Authorization-header/m-p/1008057#M22957</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/219723"&gt;@paulo_zip&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you try the &lt;STRONG&gt;null&lt;/STRONG&gt;. For a quick sample I tried the below it's worked for me&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
Source = Table.FromColumns({Lines.FromBinary(Web.Contents("https://testik.free.beeceptor.com/my/api/path"), null, null, 1252)})
in
Source&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 12:55:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Using-Web-Contents-with-No-Authorization-header/m-p/1008057#M22957</guid>
      <dc:creator>Jayendran</dc:creator>
      <dc:date>2020-04-04T12:55:15Z</dc:date>
    </item>
  </channel>
</rss>

