Post complex data type using HttpClient RRS feed

  • Question

  • I am developing an app in which i need to pass an object of a class to web API. How can I achieve this? If anybody can provide a sample for this.
    Wednesday, January 7, 2015 6:09 AM


  • Does the receiving end know how to read it? This is quite common - it's called serialization and there's a ton of information on the web about it.

    Sample here: https://code.msdn.microsoft.com/windowsapps/HttpClient-sample-55700664

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Wednesday, January 7, 2015 1:10 PM