Skip to main content
Filter by
Sorted by
Tagged with
5 votes
1 answer
2k views

Backgound: I'm currently hosting an ASP.NET application in Azure with the following specs: ASP .Net Core 2.2 Using Flurl for HTTP requests Kestrel Webserver Docker (Linux - mcr.microsoft.com/dotnet/...
DankMetalSounds's user avatar
1 vote
1 answer
1k views

I am attempting to call a Web API POST action (.Net Core) from a WinForms app (.Net Framework 4.7) via Flurl. However, when I try to debug the exception Flurl throws, my request doesn't even enter the ...
Bowser's user avatar
  • 87
2 votes
1 answer
472 views

There are some client generators (eg. Postman, Swagger-codegen https://editor.swagger.io/) that uses libraries such as Restsharp to automatically generate classes for a given swagger.json from an API. ...
staticdev's user avatar
  • 3,080
0 votes
1 answer
938 views

I'm using Flurl to consume an API in my application and I have a question about proxies. The thing is that I want the user to be able to set the proxy if necessary after startup, is that possible ...
sfaust's user avatar
  • 2,465
0 votes
1 answer
889 views

I'm posting some data to a server. This piece of code works fine a few months ago. But now it threw “Flurl.Http.FlurlHttpException”. Flurl.Http 2.3.2 string res = ""; try { var obj = new { ...
Vincent's user avatar
  • 3,334
8 votes
1 answer
11k views

I am totally new to Flurl.I am trying to call api and i deliberately passed invalid apikey in paramter and then api fails saying "Forbidden" and with error code 403. How can i handle that in Exception?...
James's user avatar
  • 1,957
0 votes
0 answers
116 views

I am mirroring another request so I have an array with all the headers. I add each of them with "url".WithHeaders(headersDictionary). But when I test the request I get a second value in the ...
beppe9000's user avatar
  • 1,132
5 votes
2 answers
2k views

I am attempting to post some data that includes a string array to an endpoint but receiving an error "Invalid array" Doing this: .PostUrlEncodedAsync(new { amount = 1000, ...
Stephen McDowell's user avatar
1 vote
1 answer
312 views

I'm setting up a consumer for a WebAPI and writing some unit tests. The 'act' portion of my test is as follows: var dta = await service.AuthenticateAsync(customerId, userName, password, machineId); ...
sfaust's user avatar
  • 2,465
-1 votes
2 answers
1k views

I have put Flurl in high load using DownloadFileAsync method to download files in private network from one server to another and after several hours the method starts to throw exceptions "Get TimeOut"....
Tomas's user avatar
  • 18.2k
1 vote
1 answer
1k views

Issue I would like to POST a JSON request using Flurl with the content header Content-Language specified. I already managed to set the content type (Content-Type) without any issues: string response ...
Daniel Fürst's user avatar
0 votes
1 answer
503 views

Account Service: public async Task<string> PostRegistrationToApi(NameValueCollection form) try { string str = await url.WithHeaders(new { Accept = "application /json"...
Code Dog's user avatar
2 votes
2 answers
646 views

I am using the Flurl library to call a webservice, which returns a JSON {"data":{"charges":[{"code":30200757,"reference":"","dueDate":"...
Tony's user avatar
  • 17.9k
0 votes
1 answer
682 views

I am using flurl and I am trying to unit test the code below: public class MyRestClient { public async Task<T> Request<T>(IFlurlRequest flurlRequest) { try { ...
boywonder's user avatar
  • 116
0 votes
1 answer
604 views

I am trying to consume a JSON API using Flurl If I use .GetStringAsync() the API returns as follows: {} && {identifier:'ID', label:'As at 15-11-2018 6:25 PM',items:[...]} However, when I try ...
Shevek's user avatar
  • 4,083
1 vote
1 answer
25 views

I've been handed an API that is not pretty ... i.e. it always returns a 200 but Content-Type: application/pdf when successful and Content-Type: application/text with some json in the body when it is ...
David's user avatar
  • 19.8k
0 votes
1 answer
2k views

Am having a bit of trouble understanding how to pass encoded data in a request using flurl. We have an api that looks like: https://servicename.com/domain/api/{identifier}?parameter=value And in some ...
The Aurochs's user avatar
3 votes
2 answers
2k views

I have a Flurl implementation already working for multi-part Posts (json plus file attachment). I need to add an extension for Put that works the same way. So far I've failed to replicate one. My ...
Jonathan Broome's user avatar
0 votes
0 answers
738 views

Can someone explain what I'm doing wrong here? I'm specifying the length header. No idea why its saying "Length Required". This request works fine when I send it through Postman, but fails when I send ...
Rilcon42's user avatar
  • 9,864
1 vote
1 answer
120 views

I would like to use another protocol than http(s):// in particular i want to build a URL that begins with vrchat:// but for some reason it always kills the second / var url = "vrchat://"....
Bluscream's user avatar
  • 253
2 votes
1 answer
1k views

I must be missing something very obvious, but I can't tell what. I have a DoLoginAsync like so: private async Task DoLoginAsync(bool force = false) { try { ...
Hintham's user avatar
  • 1,086
2 votes
1 answer
2k views

As far as I know, in HTTP 1.1 you can use the same TCP/IP connection for multiple requests, but you can't execute more than one request at a time on that connection. In other words, it has to go like: ...
N73k's user avatar
  • 593
1 vote
1 answer
3k views

I am working on a C# .NET application that requires communication with different services on different servers. I have no part on the server's configuration, so I have to work with the security ...
Nicole's user avatar
  • 107
0 votes
1 answer
724 views

In .NET Core 2.1 there is HttpClient completly rewritten. There were many imporvements like it uses websockets and etc now. It also fixes concurrency problems. I want to ask if FLurl utilizes new .NET ...
Vytautas Pranskunas's user avatar
12 votes
1 answer
6k views

I have a simple post request using the Flurl client, and I was wondering how to make this request using a proxy using information like the IP, port, username, and password. string result = await atc....
snacks's user avatar
  • 123