Last active
March 5, 2022 19:30
-
-
Save tmenier/41c672fab22cd3949e745860c4c23c40 to your computer and use it in GitHub Desktop.
Flurl example - post URL-encoded, receive JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var result = await "http://localhost:8080/lzp/servRoot" | |
.PostUrlEncodedAsync(new { | |
className = "com.lzp.service.UserInfoService", | |
methodName = "login", | |
user_name = "123", | |
user_pwd = "123" | |
}) | |
.ReceiveJson<TestResultModel>(); |
{
"snIds": [
"HRNEW20210997",
"HRNEW202111002"
]
}
how send an array of elements
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how send an array of elements example?
{
"requestTests": [
{
"idTest": {{idTest}}
}
]
}
??