WinHTTP ComObjCreate WinHTTP WinHttpRequest WinHTTP Open POST https ce

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
WinHTTP := ComObjCreate("WinHTTP.WinHttpRequest.5.1")
WinHTTP.Open("POST", "https://cepia.ru/service/words/findbyanagram", 0)
WinHTTP.SetRequestHeader("Content-Type", "application/json")
WinHTTP.setRequestHeader("path", "/service/words/findbyanagram")
WinHTTP.setRequestHeader("cookie", "_ym_uid=1550694457273914694; _ym_d=1550694457; _ga=GA1.2.169782.1550694458; ASP.NET_SessionId=jnemxjnaiqqceu214i2fzfff; _gid=GA1.2.1786943385.1550947213; _ym_visorc_25144895=w; _ym_isad=1; _gat=1")
WinHTTP.setRequestHeader("origin", "https://cepia.ru")
WinHTTP.setRequestHeader("accept-encoding", "gzip, deflate, br")
WinHTTP.setRequestHeader("accept-language", "en,ru-RU;q=0.9,ru;q=0.8,en-US;q=0.7,uk;q=0.6")
WinHTTP.setRequestHeader("x-compress", "null")
WinHTTP.setRequestHeader("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36")
WinHTTP.setRequestHeader("accept", "*/*")
WinHTTP.setRequestHeader("referer", "https://cepia.ru/anagram")
WinHTTP.setRequestHeader("authority", "cepia.ru")
WinHTTP.setRequestHeader("x-requested-with", "XMLHttpRequest")
WinHTTP.setRequestHeader("scheme", "https")
WinHTTP.setRequestHeader("method", "POST")
WinHTTP.setRequestHeader("ContentType", "application/x-www-form-urlencoded; charset=UTF-8")
WinHTTP.Send("anagram=батно")
MsgBox % WinHTTP.ResponseText