I am trying to login to the site : https://cube.tradejini.com/#/ and retrieve the cookie information.
below is my html code.. but its failing at validating the credentials, anyone please guide.. as I am novice to VBA.
Also note that the webpage takes 3 fields for the validation. username, password and a question.
url = "https://cube.tradejini.com/#/"
With CreateObject("WinHttp.WinHttpRequest.5.1")
.Open "POST", url, False
.setRequestHeader "REFERER", url
.setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"
.setRequestHeader "content-type", "application/json"
.setRequestHeader "Accept", "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
.setRequestHeader "Accept-Language", "en-us,en;q=0.5"
.setRequestHeader "Accept-Charset", "ISO-8859-1,utf-8;q=0.7,*;q=0.7"
.SetCredentials "TSUser1", "Password", "1989"
.send
strCookie = .GetAllResponseHeaders
End With