HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("https://xxx); request.Method = "POST"; request.UserAgent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"; request.Headers["Cookie"] = SessionID; request.Referer = "xxx"; request.Accept = "*/*"; request.Headers["X-GWT-Permutation"] = "E81756AE355F23274CB68B43D62F0248"; request.Headers["X-GWT-Module-Base"] = "https://xxx"; byte[] buffer = System.Text.Encoding.ASCII.GetBytes(encodeData("7|0|6|https://xxx")); //); Stream PostData = request.GetRequestStream(); PostData.Write(buffer, 0, buffer.Length); PostData.Close(); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Stream stream = response.GetResponseStream();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)