Web Update Log C# System

Written By engineerisaac

Posted: Sun, Jun 14, 2020 at 4:36 PM - Showing 34 Views


Function



public void send_status(String player_status)
{

string html = string.Empty;
string url = @"https://yoursite.com/getstatus.php?mac=" + GetMacAddress().ToString() + " &status=" + player_status + " &local_ip=" + ip_address.Text;

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.AutomaticDecompression = DecompressionMethods.GZip;

using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
using (Stream stream = response.GetResponseStream())
using (StreamReader reader = new StreamReader(stream))
{
web_status_results.Text = reader.ReadToEnd();
local_player_status.Text = player_status;
}

}


Useage:
 

send_status("Software Booted up");

Comments:
Nobody
This Isnt Finished yet.
Leave a Comment: