=== curl ===
curl -X POST 'https://api.example.com/login' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  --data-raw 'user=ann&pass=p%26ss%3Dw+rd&note=%D0%B4'

=== python-requests ===
import requests

url = "https://api.example.com/login"
headers = {
    "Content-Type": "application/x-www-form-urlencoded",
}
data = "user=ann&pass=p%26ss%3Dw+rd&note=%D0%B4"

response = requests.request("POST", url, headers=headers, data=data)
print(response.text)

=== js-fetch ===
const url = "https://api.example.com/login";
const options = {
  method: "POST",
  headers: {
    "Content-Type": "application/x-www-form-urlencoded",
  },
  body: "user=ann&pass=p%26ss%3Dw+rd&note=%D0%B4",
};

const response = await fetch(url, options);
console.log(await response.text());

=== go ===
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/login"

	payload := strings.NewReader("user=ann&pass=p%26ss%3Dw%20rd&note=%D0%B4")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/x-www-form-urlencoded")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}

=== java-httpclient ===
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://api.example.com/login"))
    .header("Content-Type", "application/x-www-form-urlencoded")
    .method("POST", HttpRequest.BodyPublishers.ofString("user=ann&pass=p%26ss%3Dw%20rd&note=%D0%B4"))
    .build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());

=== java-okhttp ===
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "user=ann&pass=p%26ss%3Dw%20rd&note=%D0%B4");
Request request = new Request.Builder()
  .url("https://api.example.com/login")
  .post(body)
  .addHeader("Content-Type", "application/x-www-form-urlencoded")
  .build();

Response response = client.newCall(request).execute();

=== csharp-httpclient ===
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("https://api.example.com/login"),
    Content = new FormUrlEncodedContent(new List<KeyValuePair<string, string>>
    {
        new("user", "ann"),
        new("pass", "p&ss=w rd"),
        new("note", "д"),
    }),
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}

=== php-guzzle ===
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.example.com/login', [
  'form_params' => [
    'user' => 'ann',
    'pass' => 'p&ss=w rd',
    'note' => 'д'
  ],
  'headers' => [
    'Content-Type' => 'application/x-www-form-urlencoded',
  ],
]);

echo $response->getBody();
