Skip to main content

Questions tagged [httpclient]

DO NOT USE - Use [apache-commons-httpclient], [apache-httpclient-4.x], [jetty-httpclient], [java-http-client], [dotnet-httpclient] or [angular-httpclient]

httpclient
0 votes
0 answers
12 views

Kotlin Multiplatform Library - Best practices for library dependencies

I'm creating a Kotlin Multiplatform library that interacts with a Restful HTTP API service. The library depends on Ktor and Kotlin Serialization. When importing the library, users also have to import ...
Peter Araujo's user avatar
0 votes
0 answers
25 views

C# HttpClient fails to connect when binding to non-default route interface, but curl works

I'm trying to send HTTP requests through specific network interfaces on my Raspberry Pi running .NET. I've written a C# program that creates an HttpClient bound to a specific interface. However, I'm ...
Matt's user avatar
  • 105
0 votes
0 answers
19 views

Angular CacheStorage not storing Response as expected when converted from HttpResponse

In Angular 15 I'm implementing Client-Side caching through the CacheStorage interface. I convert back and forth between HttpResponse and fetch interface's Response type when storing responses in ...
friedlettuce's user avatar
1 vote
2 answers
45 views

Error reading JObject from JsonReader. Path '', line 0, position 0.”

I am using the following code to call a post interface in Visual Studio 2022: private List<Token> LoginToken(string username, string password) { string api = ""; List<Token> ...
Wenbin Geng's user avatar
  • 3,443
-1 votes
0 answers
63 views

Why is HttpClient too slow for some requests and fast for others? How can I fix it? [closed]

I use HttpClient with .NET 8, injecting it via dependency injection and making requests to another server. I have a problem where some requests are very slow, while others are very fast. The fast ...
Macus101's user avatar
0 votes
1 answer
20 views

Is there still anyway to get audit logs from DefaultConnectingIOReactor in httpclient5?

Abstract I'm now switching my project denpendency apache-http-component 4 to 5.2 and there are lots of api has changed or removed. And I can't find any useful migration guide for me (even this one ...
CN Dioxide's user avatar
0 votes
1 answer
53 views

Issue with HttpClient Injection in Blazor WebAssembly .NET 8

I'm encountering an error in my Blazor WebAssembly application running on .NET 8. The error occurs when the application launches: InvalidOperationException: Cannot provide a value for property 'Http' ...
NickoZero's user avatar
1 vote
0 answers
34 views

HttpClient GetAsync every redirected URL

If you look at the answer on this page, you can see its outdated code. How to upgrade it to HttpClient and using async methods instead? I have been trying to adapt this code for a number of hours now ...
Peter's user avatar
  • 11
0 votes
0 answers
7 views

Compare the JSON response of a request with a JSON schema

I'm using the IntelliJ Http client to perform some requests and some simple tests. However, I have a couple of JSON schema files that define how the response of a specific endpoint should look like. ...
SCM's user avatar
  • 51
-1 votes
0 answers
36 views

BrunoApi testing - WIndows 11 issue

We are having some strange issues. In the development environment (local laptop for each developer) we are using BRUNO http client for testing changes to the API. Everything is working without any ...
kurkey's user avatar
  • 29
1 vote
1 answer
31 views

Why HttpClient.GetAsync returns 302 while trying to download zip file from external server? (FIXED)

in my project i have file dowloader spot. Any file i can dowload except zip. When i try to dowload zip file from other server it returns to me redirect. Do you have any idea what can be cause of that? ...
Halil İbrahim Şentürk's user avatar
0 votes
0 answers
37 views

Goroutine not starting in shared library

I'm trying to create a pam module to be used for authorization with SSH. Unfortunately every goroutine does not start within the PAM module, if it was used within SSH flow. It does indeed work with ...
GreNodge's user avatar
  • 945
0 votes
0 answers
59 views

Use IHttpClientFactory in ASP.NET Framework 4.8

I know this question has been asked several times, but after a long search through all the answers, I couldn't find an answer that explains how to use the IHttpClientFactory in ASP.NET Framework (4.8),...
Nissim Elbaz's user avatar
0 votes
1 answer
58 views

Why Angular httpclient use observers and not promises?

I've been looking in angular documentation, why httpClient use observers, but I didn't find a good answer. My question is because I am working on a large project and we are looking for the most ...
JJasinski's user avatar
0 votes
0 answers
40 views

A GET request using IntelliJ http-client returns an HTTP 200 response with an empty response body

I signed up to my /auth/signup endpoint of my API, and it registered and returned an object of the currently signed up user. POST http://localhost:8082/auth/signup Content-Type: application/json { &...
Pascal Torti's user avatar

15 30 50 per page
1
2 3 4 5
461