Merge pull request #14972 from ulisseslima/bael-5481-quickfix_httpclient

BAEL 5481 - Post Request with Java HttpClient - quickfix
This commit is contained in:
Loredana Crusoveanu 2023-10-13 10:09:34 +03:00 committed by GitHub
commit fbd400fa43
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@ public class HttpClientPost {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(serviceUrl))
.header("Content-Type", "application/x-www-form-urlencoded")
.POST(HttpRequest.BodyPublishers.ofString(getFormDataAsString(formData)))
.build();