Commit cde88ea4 authored by JoyJ's avatar JoyJ

update

parent fcbf3f98
...@@ -77,7 +77,7 @@ new System.IO.Compression.GZipStream(streamReceive, System.IO.Compression.Compre ...@@ -77,7 +77,7 @@ new System.IO.Compression.GZipStream(streamReceive, System.IO.Compression.Compre
byte[] bytesToPost = encoding.GetBytes(data); byte[] bytesToPost = encoding.GetBytes(data);
string result = null; string result = null;
HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(url); HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create(url);
req.Headers.Add("Authorization", "WUEHSvMeNhj7NCm1jf"); req.Headers.Add("Authorization", txtAuthKey.Text);
req.ContentType = "application/json"; req.ContentType = "application/json";
req.Method = "POST"; req.Method = "POST";
req.ContentLength = bytesToPost.Length; req.ContentLength = bytesToPost.Length;
...@@ -100,12 +100,6 @@ new System.IO.Compression.GZipStream(streamReceive, System.IO.Compression.Compre ...@@ -100,12 +100,6 @@ new System.IO.Compression.GZipStream(streamReceive, System.IO.Compression.Compre
return result; return result;
} }
private void btnTest2_Click(object sender, EventArgs e)
{
string url = $"https://yunomi.mycard.moe/video/task?id=7ad082ae-b3fd-4c8c-9eb5-9e08f2d6368a";
MessageBox.Show(this.HttpGet(url));
}
DataTable table = null; DataTable table = null;
private void YRP2Video_Load(object sender, EventArgs e) private void YRP2Video_Load(object sender, EventArgs e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment