Most voted "httpclient" questions
22 questions
Sort by count of
-
5
votes2
answers103
viewsHttpstatuscode does not exist code 207, 208 and 226
What to do when class HttpStatusCode there is no code 207, 208 and 226 ? Someone already asked the question on Github: https://github.com/dotnet/corefx/issues/4382, I don’t think they did an…
-
3
votes1
answer66
viewsHttpclient reuse and an Apicontroller lifecycle
Based on that website and also in some answers from Stackoverflow [en] I came to the conclusion that I shouldn’t use the class HttpClient in a block using despite the same implement IDisposable.…
-
1
votes1
answer3615
viewsCORS error when requesting using Httpclient at Angular
I am trying to perform an HTTP request using "Httpclient" from Angular 4, and I get the following error: Request header field Access-Control-Allow-Origin is not allowed by…
-
1
votes0
answers18
viewsHttpmessagehandler vs Delegatinghandler
DelegatingHandler inherits from HttpMessageHandler. But I did not understand the difference, since it is necessary to implement the same method: SendAsync, to perform the same operation. What’s the…
-
1
votes1
answer76
viewsHow to change the structure of a static method at runtime?
I am building a Java application that consumes a REST Web Service. I sought to use the new Httpclient of Java 11. However, the same request in this target application sometimes gets a post,…
-
1
votes0
answers31
viewsHow to upload a file to Cloudflare?
I want to upload a file to cloudflare, but before that, it uses protocol tus. Follow the code below: var cloudflare = new HttpClient(); var zoneId = "xxxxxxxxxxxxxxx"; var email =…
-
1
votes1
answer360
viewsAngular 7 - toPromise returns no error
I’m using the Httpclient as below. However even with error 404 to toPrimise() gets into the .then() instead of .catch(). Note: Sometimes it worked with the same code. I believe it is something…
-
0
votes1
answer372
viewsAngular login visible in the request header
Everybody, Good afternoon. I need some help. My backend was written in nodejs and this one on IIS. My frontend is in angular and it’s still on my machine being debugged. My login page is working as…
-
0
votes1
answer343
viewsDelphi JSON Encode with Tsslhttpcli (Overbyte ICS)
I am using the Tsslhttpcli component of Overbyte www.overbyte.I and I’m having problems with formatting my return json, with special characters, I’m consuming the google’s Geolocation api, see…
-
0
votes2
answers128
viewsHow to optimize the performance of my application when doing Httpclient resquisitions
I’m developing an app using Xamarin.Forms, but I have a problem. Settings like color, company name, cover image and soon comes through a request for a call to web service whose return is a JSON, but…
-
0
votes1
answer91
viewsHttp to Httpclient (Angular)
I’m trying to update the requisitions Http for HttpClient in Angular. Currently the code is: return this.http.get(`${this.url}/grupos`).map(res => res.json()); After researches I’m trying to…
-
0
votes0
answers38
viewsHow to cache a json Xamarin IOS request
I’d like to know how to do cache of a request Httpclient whose return is a json and determine the amount of storage days of that cache. public async Task<List<Categoria>>…
-
0
votes1
answer225
viewsAngular 2 Error Httpresponse not found
I am trying to implement a login screen that accesses an api through a server, I need to pass the email and the user password to the api, and it returns me NULL in case of error or a number in case…
-
0
votes1
answer428
viewsSave return service variable in Angular
I have a service that returns me a user object with a user id: My object: export class Usuario{ email: string; password: string; } In my component I urge my object to get the return of service:…
-
0
votes1
answer1488
viewsReceive http client request status and login token at the angle
My backend api returns a token and a status, I need to save the token to localstorage and redirect the user to the welcome screen if the status returned from the api is 200. I tried something like:…
-
0
votes4
answers2324
viewsAngular 7 - Popular object on return of API service. httpClient
Thanks in advance for your attention. I am having difficulty popular an object list returned from an API in Angular 7. My service class is returning the service data, but I can’t get popular in my…
-
0
votes1
answer48
viewsHttpclient URL limit
Could someone tell me if there is any limitation to the size of a URL in httpclient in Angular? I’m trying to call an api from the url below, but the last 6 characters are cut.…
-
0
votes0
answers339
views"The underlying connection was closed" error in REST Httpclient C#
I’m doing a REST integration with C# used Httpclient, most of the time the data was sent successfully, but I went to investigate why some of these were returning with error, found that what they had…
-
0
votes1
answer34
viewsProblem with POST at Angular
I’m building an Angular login system. The back-end is in cakephp. The request for preflight is being done correctly and receiving status 200 (figure below). After the preflight, the angle sends the…
-
0
votes0
answers31
viewsAngular Httpclient.get taking time
Good afternoon, guys, next, I’m developing a project of my course with some people, but there’s an excerpt where I’m suffering a little for the reason that the code sends the request to my back (In…
-
0
votes1
answer39
viewsHow to put returned Web Service data into Json (GET) for an array or variable in c#
Hi, I’m calling a web service in Rest, I can access the answer but I wanted to organize the data that is returned (which is in Json), for an array or variables but how can I do it? Thank you in…
-
-1
votes1
answer47
viewshttpclient is not downloading the whole html page body
When I try to get the page down "https://soundcloud.com/mecaaaa" she doesn’t lower the whole body of the body, so I can’t do what I’m aiming for. Code I’m using to retrieve page data. public string…