Questions tagged [httpclienthandler]
22 questions
0
votes
1 answer
Use HttpClientHandler with ODataClient
I have a custom HttpClientHandler class which inherits from HttpClientHandler and for most scenarios it is used with the HttpClient as var client = new HttpClient(new CustomHttpClientHandler()) and it is working fine but I have a case where instead…

Mohaned Mohamed
- 1
- 1
0
votes
1 answer
httpClientHandler.ServerCertificateCustomValidationCallback never executed
I'm using Xamarin, in VS 2022, class libraries targeting .NetStanderd2.1, for Android.
I'd like to implement an HttpCient with custom SSL certificate validation.
Here's my code:
var httpClientHandler = new…

balintn
- 988
- 1
- 9
- 19
0
votes
1 answer
Time out errors with multiple HttpClientHandler instance
We have written an application that connects with an external API. You need to have a Token to communicate with this api. The token have to be unique for each user. To obtain a token we need to call an endpoint with a client-certificate that belongs…

Doomic
- 337
- 2
- 15
0
votes
0 answers
How to implement ServerCertificateCustomValidationCallback from HttpClientHandler
I'm trying to implement a method for ServerCertificateCustomValidationCallback for an instance of HttpClientHandler class. I'm at a loss here because I don't know what to validate. I need to send a certificate to the server (which I'm already…

Mari Faleiros
- 898
- 9
- 24
0
votes
0 answers
Xamarin.Forms: default instead of AndroidClientHandler as HttpClient implementation
I work on an existing Xamarin.Forms app, where we need to integrate API calls to external providers.
For this, we use my client's custom HttpClient library.
Until now, the Android HttpClient was set to AndroidClientHandler.
But after a basic call to…

Gold.strike
- 1,269
- 13
- 47
0
votes
0 answers
HttpClientHandler design clashing with Tests
I have Integration Tests failing when run at once, but pass if run separately.
The tests are for Service 1 which initializes dependent Service 2. Service 2 receives HttpClientHandler through DI where it sets default behavior (AllowAutoRedirect…

aka17
- 73
- 1
- 1
- 9
0
votes
1 answer
I am trying to apply a Proxy authentication through an HttpClient, in a .net standard1.3 library
.net Standard 1.3 means -> no WebProxy library. So I have created one, here it is :
public class WebProxy : IWebProxy, ISerializable
{
private readonly ArrayList _bypassList;
public WebProxy() : this((Uri)null, false, null,…

Nicole Milea
- 35
- 6