Forum Discussion
pranaysharmaman
4 years agoRegular Visitor
How to retrieve custom response headers from a URL using Web Headers
I'm trying to make a call to a REST API that returns the total count of rows in a header X-Total-Count. However when making a call through Power BI, the Web.Headers only retrieves generic response h...
v-henryk-mstf
4 years agoCommunity Support
Hi pranaysharmaman ,
The supported parameters are of the following types.
let
searchText = "Power Query"
in
Web.Headers(
"https://www.bing.com",
[
RelativePath = "search",
Query = [q = searchText]
]
)
related document link:
Web.Headers - PowerQuery M | Microsoft Docs
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- pranaysharmaman4 years agoRegular Visitor
This also has the same limitation.
The headers returned are only generic ones.
Power BI only returns following headers -
Postman returns -
Majority of headers are missing from Power BI