| | |
| | | // 准备要发送的表单数据 |
| | | var formData = new FormUrlEncodedContent(new[] |
| | | { |
| | | new KeyValuePair<string, string>("userName", "admin"), |
| | | new KeyValuePair<string, string>("password", "admin") |
| | | new KeyValuePair<string, string>("userName", "mes"), |
| | | new KeyValuePair<string, string>("password", "MesApi123") |
| | | // 添加更多键值对,根据您的需要 |
| | | }); |
| | | JsonResult jsonResult = await getUrl(urls, formData); |
| | |
| | | // 准备要发送的表单数据 |
| | | var formData = new FormUrlEncodedContent(new[] |
| | | { |
| | | new KeyValuePair<string, string>("userName", "admin"), |
| | | new KeyValuePair<string, string>("password", "admin") |
| | | new KeyValuePair<string, string>("userName", "mes"), |
| | | new KeyValuePair<string, string>("password", "MesApi123") |
| | | // 添加更多键值对,根据您的需要 |
| | | }); |
| | | JsonResult jsonResult = await getUrl(urls, formData); |
| | |
| | | // 准备要发送的表单数据 |
| | | var formData = new FormUrlEncodedContent(new[] |
| | | { |
| | | new KeyValuePair<string, string>("userName", "admin"), |
| | | new KeyValuePair<string, string>("password", "admin") |
| | | new KeyValuePair<string, string>("userName", "mes"), |
| | | new KeyValuePair<string, string>("password", "MesApi123") |
| | | // 添加更多键值对,根据您的需要 |
| | | }); |
| | | JsonResult jsonResult = await getUrl(urls, formData); |