Category "webclient"

Exception Handling for async WebClient request

Recently I have been working with WebClient. I am creating both a sync request and an async request. In a sync request, I am able to catch WebClientResponseExce

Using C# HttpClient to POST File without multipart/form-data

I'm trying to interact with a API that doesn't support multipart/form-data for uploading a file. I've been able to get this to work with the older WebClient but

`servletRequest cannot be null` -> SpringBoot - WebClient - GET request with Keycloak

I'm trying to make GET request between two microservices (with Keycloak authentication). Let's say microservice A is asking microservice B for some resources. M

Download file with WebClient or HttpClient?

I am trying to download file from a URL and I have to choose between WebClient and HttpClient. I have referenced this article and several other articles on the