h
when i try to get data from site with clients sertificates with winHttp, I have a problem with result encoding (ru). Its OK with any sites without client sertificates, and its OK when i try to do it manualy with IE
any help would be really great
script looks like that
Set oHttp = CreateObject("WinHttp.WinHttpRequest.5")
oHttp.Option(2) = "Windows-1251" ' WinHttpRequestOption_URLCodePage = 2
oHttp.Open "POST", "https://...", 0
oHttp.SetRequestHeader "Accept-Language", "ru"
oHttp.SetRequestHeader "Accept-Charset", "Windows-1251"
oHttp.setRequestHeader "Accept-Encoding", "gzip, deflate"
oHttp.setRequestHeader "Content-Language", "ru"
oHttp.setRequestHeader "Content-Charset", "Windows-1251"
oHttp.setRequestHeader "Content-Encoding", "gzip, deflate"
oHttp.SetRequestHeader "Content-Type", "application/x-www-form-urlencoded; charset=Windows-1251"
oHttp.setRequestHeader "USER_AGENT", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)"
oHttp.Send