Skip to content

Instantly share code, notes, and snippets.

@Vrijdagonline
Forked from tmenier/flurl-example.cs
Created September 26, 2019 13:10
Show Gist options
  • Save Vrijdagonline/ab26ab0e67a521297e6387118addf96d to your computer and use it in GitHub Desktop.
Save Vrijdagonline/ab26ab0e67a521297e6387118addf96d 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>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment