Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
usuario221
Frequent Visitor

cant access a web with credentials

hi, im having an issue where i cant access with my credentials to the web, im always getting the html data of the login page even if i change the configuration of the data origin to basic.

 

usuario221_0-1697838376460.png

 i've tried a lot of variations i saw in the forum to try to connect, i checked wireshark and when i connect to the web with the configuration in basic  it never throw a POST, always a GET.

 

Also i found this code and i used it in a blank query and putting the configuration in anonymous but im getting the same result

 

let
url = "web",
#"user" = "xxxxxxxxx", // Username
#"pass" = "xxxxxxxxx", //Password

EncodedCredentials = "Basic " & Binary.ToText(Text.ToBinary(#"user" & ":" & #"pass"), BinaryEncoding.Base64),

Source = Table.FromColumns({Lines.FromBinary(Web.Contents(url, [Headers=[#"Content-Type"="application/x-www-form-urlencoded", Authorization="EncodedCredentials"]]), null, null, 65001)})

in
Source

 

 

 

Thanks for the help!

 

4 REPLIES 4
Brunner_BI
Super User
Super User

PowerQuery by default sends a GET request, the only way that I know you can send a POST request is if you add something to the body of the request.

------------------------------------
Brunner BI focusing on Microsoft Power BI development and consulting
Developers of external tool "Measure Killer"
My blog

hi, sorry for the slow reply but how do i have to modify the code?

TomMartens
Super User
Super User

Hey @usuario221 ,

 

I'm not an expert at all, when it comes to accessing web data sources. But, when it's not that easy I rely on Postman, maybe you can give it a try.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

hi, sorry for the slow reply. Postman works fine, i can access the main page with my credentials

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors