shahin
Active Member
If one cookie is good to go then this approach is alright:
Code:
Sub GetCookie()
Dim strCookie As Variant
With CreateObject("WinHttp.WinHttpRequest.5.1")
.Open "GET", "http://162.217.184.82/i2/default.aspx", False
.setRequestHeader "User-Agent", "Mozilla/5.0"
.send
strCookie = .getAllResponseHeaders
strCookie = Split(Split(strCookie, "Cookie:")(1), ";")(0)
MsgBox Trim(strCookie)
End With
End Sub