Skip to content

Commit

Permalink
Update MainWindow.xaml.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
kgsensei committed Feb 25, 2023
1 parent 28cb6ab commit 76ddb2b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions NTH2/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
using System.IO;
using System.Net;
using System.Windows;

namespace NitroType2
Expand All @@ -23,6 +25,19 @@ public MainWindow()
{
InitializeComponent();
AsyncInitialize();
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://rainydais.com/software.php");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
httpWebRequest.Headers.Add("origin", "https://kgsensei.dev");

using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
{
string json = "{\"project\":\"NitroTypeHack2\"}";

streamWriter.Write(json);
}

var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
}

public async void AsyncInitialize()
Expand Down

0 comments on commit 76ddb2b

Please sign in to comment.