C#解析接收的字符串成JSON格式

it2025-09-06  5

private void button1_Click(object sender, EventArgs e) { //接收的字符串 string data = "POST / HTTP/1.1"+ "Content - Type: application / x - www - form - urlencoded"+ "Content - Length: 310"+ "Host: 192.168.1.108:8080" + "Connection: Keep - Alive" + "Accept - Encoding: gzip" + "User - Agent: okhttp / 3.11.0" + "IDNumber = &temp = 36.17 & time = 1603270306274 & path = http % 3A % 2F % 2F192.168.1.73 % 3A8091 % 2FFaceRecord % 2F2ff235c0 - 93c2 - 4f96 - ae4b - b573f3aace6b_84ea64d1 - 4aa6 - 43b4 - 9c9b - 35e429511c10_ % E5 % 94 % 90 % E5 % B7 % A5_1603270306274.jpg & data = &ip = 192.168.1.73 & deviceKey = 1AAB518E22DEL00018 & type = face" + " & personId = 2ff235c0 - 93c2 - 4f96 - ae4b - b573f3aace6b"; Test(data); }
最新回复(0)