Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Js

Idiom #174 Make HTTP POST request

Make a HTTP request with method POST to the URL u

fetch(u, {
        method: "POST",
	body: JSON.stringify(data)
})
using System.Net.Http;
new HttpClient().PostAsync(u, content);

New implementation...
< >
programming-idioms.org