Merge pull request #14972 from ulisseslima/bael-5481-quickfix_httpclient
BAEL 5481 - Post Request with Java HttpClient - quickfix
This commit is contained in:
commit
fbd400fa43
|
@ -123,6 +123,7 @@ public class HttpClientPost {
|
||||||
|
|
||||||
HttpRequest request = HttpRequest.newBuilder()
|
HttpRequest request = HttpRequest.newBuilder()
|
||||||
.uri(URI.create(serviceUrl))
|
.uri(URI.create(serviceUrl))
|
||||||
|
.header("Content-Type", "application/x-www-form-urlencoded")
|
||||||
.POST(HttpRequest.BodyPublishers.ofString(getFormDataAsString(formData)))
|
.POST(HttpRequest.BodyPublishers.ofString(getFormDataAsString(formData)))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue