Skip to content

Instantly share code, notes, and snippets.

@tmenier
Last active March 5, 2022 19:30
Show Gist options
  • Save tmenier/41c672fab22cd3949e745860c4c23c40 to your computer and use it in GitHub Desktop.
Save tmenier/41c672fab22cd3949e745860c4c23c40 to your computer and use it in GitHub Desktop.
Flurl example - post URL-encoded, receive JSON
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>();
@Alextorres950325
Copy link

how send an array of elements example?
{
"requestTests": [
{
"idTest": {{idTest}}
}
]
}
??

@JosonJiang
Copy link

{
"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