Open romain-grecourt opened 5 months ago
It's probably worth having an example that also needs to set some headers. Both with and without shortcut methods.
For example, this is a request being made to the Steam API which makes use of shortcut methods and generic header()
calls.
WebClient client = WebClient.create();
HttpClientRequest req = client.post("https://steamcommunity.com/openid/login");
req.contentType(MediaTypes.APPLICATION_FORM_URLENCODED);
req.header(HeaderNames.ACCEPT_LANGUAGE, "en");
req.header(HeaderNames.CONTENT_LENGTH, Integer.toString(payload.length()));
req.followRedirects(false);
Environment Details
Problem Description
There is no example that demonstrates how to process form parameters (both client side and server side).
Steps to reproduce
See a self contained test for inspiration: