Forum Discussion

adarshmadrecha's avatar
adarshmadrecha
Regular Visitor
8 years ago
Solved

Passing Cookie using Web.Contents in PowerBI Desktop

I have API which authenticates user based on Cookies (PHP Sessions)   I am using below code to pass cookies   = Json.Document(Web.Contents("https://myapp.example.com/api/test.php", [Headers=[Cook...
  • adarshmadrecha's avatar
    8 years ago

    I understood waht the issue was.

    Instead of using : I sould use = to scecify cokie name and value.

     

    = Json.Document(Web.Contents("https://myapp.example.com/api/test.php", [Headers=[Cookie="PHPSESSID=123abc"]]))