最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

powerquery - PoweryQuery, no cookies found - Stack Overflow

programmeradmin1浏览0评论

I am trying to use PowerQuery to get data from an asp website.

let
    url = ".asp",
    headers = [
        #"Content-Type" = "application/x-www-form-urlencoded"
    ],
    formData = "userLogin=xxx&userPassword=xxx",
    options = [
        Headers = headers,
        Content = Text.ToBinary(formData)
    ],
    
    // Send the POST request and capture the response headers
    loginResponse = Web.Contents(url, options),
    responseHeaders = Web.Headers(url, options),
    cookies = if Record.HasFields(responseHeaders, "Set-Cookie") then responseHeaders[#"Set-Cookie"] else "no cookies found"
in
    cookies

I do the same thing in VBA and Postman and I see cookies.

Is PowerQuery blocking access to cookies?

-Gina

发布评论

评论列表(0)

  1. 暂无评论