Send instance of my class to web api RRS feed

  • Question

  • Hello,

    I am stuck at sending instance of my model to web api I created. I know how to send username and password as parameters of url but I don't want to work like that. I want to send username and password (that are part of Authentication class) as body to my web api. But whatever I did it didn't work (mostly cause of 204 no content). What is the correct way to send object that I filled?

    Thank you.

    • Moved by Breeze Liu Tuesday, August 1, 2017 9:40 AM off topic
    Sunday, July 16, 2017 6:15 PM

All replies

  • Hi Ryukote,

    Are you using HttpClient to do the communication? Refer: HttpClient.

    There are also different choices for authentication info. For example, through http header or through http request body. If you want examples, please post your authentication class and let us know what are the properties you need to pass on.

    I build UWPs: Arrnage Pro, Cloud Resource Tools

    Monday, July 17, 2017 12:57 AM