EnoharaEnohara Member ✭✭✭

Can someone explain PostAsync to me more clearly?

    async static void PostRequest(string url)
    //Local Network that i created
        var uri = ""; 

        var content = new StringContent("{\"name:\":\"Xamarin Shirt\"}");
        HttpClient client = new HttpClient();
        var response = await client.PostAsync(uri, content);

What will this code do? will it post the data here:

This is the API that i create using WPF application.

or can you teach me how to put data on there?

Thanks in advance for viewing this post :)


Sign In or Register to comment.