I need to include a slash in an URL to access RabbitMQ API and I'm trying to fetch data using WebClient
:
WebClient.builder()
.baseUrl("https://RABBIT_HOSTNAME/api/queues/%2F/QUEUE_NAME")
.build()
.get().exchange();
When I replace /
with %2F
I can see in the request descriptor that %2F
has been changed to %252F
and because of it I'm getting not found response.
I've tried the following options:
• "\\/"
- WebClient changes to %5C
but Rabbit doesn't interpret it correctly and returns 404.
• "%5C"
- WebClient changes to %255C
, Rabbit returns 404.
How can I persist %2F
in an url using WebClient?