WinHTTP ComObjCreate WinHTTP WinHttpRequest WinHTTP Open POST https pe

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
WinHTTP := ComObjCreate("WinHTTP.WinHttpRequest.5.1")
WinHTTP.Open("POST", "https://pentacraft.ru/cabinet/hornSet", 0)
WinHTTP.SetRequestHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; rv:65.0) Gecko/20100101 Firefox/65.0")
WinHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
WinHTTP.SetRequestHeader("path", "/cabinet/hornSet")
WinHTTP.SetRequestHeader("cookie", "__cfduid=dcdffc994238cde845cd13e96eb1584391561566941; __ddg_=73916; _ga=GA1.2.145688526.1561566974; __ddgu=82ec314869325f0625ed8efa12e3d00e.1700517597; _gid=GA1.2.625550921.1564690789; session=c6d5b0de207ce9ee9d1f899eb158e5c23ce9cb45; _gat_gtag_UA_123740274_1=1")
WinHTTP.SetRequestHeader("origin", "https://pentacraft.ru")
WinHTTP.SetRequestHeader("accept-encoding", "gzip, deflate, br")
WinHTTP.SetRequestHeader("accept-language", "ru-RU,ru;q=0.9,uk-UA;q=0.8,uk;q=0.7,en-US;q=0.6,en;q=0.5")
WinHTTP.SetRequestHeader("x-compress", "null")
WinHTTP.SetRequestHeader("referer", "https://pentacraft.ru/cabinet/horn")
WinHTTP.SetRequestHeader("authority", "pentacraft.ru")
WinHTTP.SetRequestHeader("x-requested-with", "XMLHttpRequest")
WinHTTP.SetRequestHeader("scheme", "https")
WinHTTP.SetRequestHeader("method", "POST")
WinHTTP.SetRequestHeader("Cache-Control", "no-cache, no-store")
WinHTTP.SetRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT")
WinHTTP.Send({text:"123", server:"1", author:"NikMine"})
MsgBox % WinHTTP.ResponseText