script var http new XMLHttpRequest http open POST https cepia ru servi

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<script>
var http = new XMLHttpRequest();
http.open('POST', 'https://cepia.ru/service/words/findbyanagram', true);
http.setRequestHeader('cache-control', 'private');
http.setRequestHeader('content-encoding', 'gzip');
http.setRequestHeader('content-length', '137');
http.setRequestHeader('content-type', 'text/html; charset=utf-8');
http.setRequestHeader('date', 'Sat, 23 Feb 2019 18:41:06 GMT');
http.setRequestHeader('server', 'Microsoft-IIS/8.0');
http.setRequestHeader('status', '200');
http.setRequestHeader('vary', 'Accept-Encoding');
http.setRequestHeader('x-aspnet-version', '4.0.30319');
http.setRequestHeader('x-aspnetmvc-version', '4.0');
http.setRequestHeader('x-powered-by', 'ASP.NET');
http.send('anagram=%D0%90%D0%91%D0%A2%D0%9E%D0%9D');
if (http.status != 200)
{
alert( http.status + ': ' + http.statusText );
}
else
{
alert( http.responseText );
}
</script>