I have a https request which its uri begins with capital letter. I have tested it in postman and i have gotten response; But in my code by vertx (io.vertx.core), I can not get desired response response. It seems that destination server reject me. It seems that my desired uri changes to lowercase automatically. Unfortunately the server does not accept the changed mode.
Desired uri : /Internalservice
https://example.com/Internalservice
I use this webClient: io.vertx.ext.web.client;
This is my method:
public CompletionStage<HttpResponse> post(String host, int port, String uri, MultiMap headers, JsonObject body) {
return client.post(port, host, uri)
.putHeaders(headers)
.timeout(requestTimeout.toMillis())
.sendJsonObject(body)
.toCompletionStage()
.thenApply(response -> new HttpResponse(response.statusCode(), response.body() != null ? response.body().getBytes() : new byte[]{}));
}
what I have to do to handle this case sensitive uri?