Posts

Showing posts from November, 2016

Post_Method and Get_Method from C#

  public static string Post_Method(string uri, string command)     {         WebRequest req = null;         WebResponse rsp = null;         string tempReply = "";         try         {             req = WebRequest.Create(uri);             req.Method = "post";             req.ContentType = "application/x-www-form-urlencoded";             StreamWriter writer = new StreamWriter(req.GetRequestStream());             writer.Write(command);             writer.Close();             // Send the data to the webserver             rsp = req.GetResponse();             StreamReader reader = new StreamReade...