View bitmask.php
<?php | |
// source data | |
$source = array( | |
false, | |
true, | |
true, | |
false, | |
true, | |
true, | |
false, |
View get-post-functions.cs
private static string POST(string Url, string Data) { | |
System.Net.WebRequest req = System.Net.WebRequest.Create(Url); | |
req.Method = "POST"; | |
req.Timeout = 100000; | |
req.ContentType = "application/x-www-form-urlencoded"; | |
// Кодировка указывается в зависимости от кодировки клиента | |
byte[] sentData = Encoding.GetEncoding(1251).GetBytes(Data); | |
req.ContentLength = sentData.Length; | |
System.IO.Stream sendStream = req.GetRequestStream(); | |
sendStream.Write(sentData, 0, sentData.Length); |