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

Idiom #174 Make HTTP POST request

Make a HTTP request with method POST to URL u

fphttpclient
with TFPHTTPClient.Create(nil) do
begin
 Post(u);
 Free;
end;
import std.net.curl; 
auto response = post(u, content);
import "net/http"
response, err := http.Post(u, contentType, body)
fetch(u, {
        method: "POST",
	body: JSON.stringify(data)
})

Do you know the best way to do this in your language ?
New implementation...

Idiom created by

programming-idioms.org