Not understanding why WinHTTP does NOT authenticate certain HTTPS resource

后端 未结 3 1469
半阙折子戏
半阙折子戏 2020-12-10 23:26

I\'d be extremely grateful for any kind of help that may help me resolving the problem.

From Excel VBA code I need to download & parse CSV file from HTTPS site h

3条回答
  •  感动是毒
    2020-12-10 23:51

    The logon at https://redmine.itransition.com/ is just an HTML form that posts a username & password to a script at /login.

    This is not compatible with SetCredentials which is designed for server based authentication schemes like basic/digest/ntlm.

    You need to load that page with no credentials, grab what looks like the volatile field authenticity_token from the generated form & post that along with username & password to /login.

    If its a session based system it will response with the set-cookie header + data you need to use in subsequent request.

提交回复
热议问题