Questions tagged [flurl]

Flurl is a fluent URL builder and wrist-friendly HTTP client library for .NET.

Flurl is a modern, fluent, asynchronous, testable, portable, buzzword-laden URL builder and HTTP client library for .NET.

With a discoverable API, extensibility at every turn, and a nifty set of testing features, Flurl is intended to make building and calling URLs easy and downright fun.

Flurl is available on NuGet in two flavors:

  • Flurl.Http includes all features.
  • Flurl for just the URL builder functionality without the HTTP features.
255 questions
0
votes
0 answers

Null value returned from Furl using Xamarin.Forms, request works in Postmaster

I originally posted this on GitHub but the plugin author asked me to move it to Stack Overflow. I'm developing a Xamarin.Forms app. I'm trying do get data from a test API I've setup with OAuth authorisation. I can get the data fine from Postmaster,…
Strak
  • 99
  • 7
0
votes
1 answer

Client Machine : throw NullReference Exception at Flurl.Http.FlurlClient.ReadResponseCookies

Problem occurs only on my client machine. I ran my application on 4 machines without reproduction success. I would like to ask on advice and help in debug the following exception while using Flurl library: What may cause this exception to run only…
Patryk
  • 39
  • 7
0
votes
2 answers

How to remove charset=utf-8 from Content-Type when using PostUrlEncodedAsync

When posting data with Flurl's PostUrlEncodedAsync, the following Content-Type is automatically set: application/x-www-form-urlencoded; charset=utf-8 How do I remove the charset=utf-8 part? I already tried: flurlClient.ConfigureHttpClient(c =>…
Kenci
  • 4,794
  • 15
  • 64
  • 108
0
votes
1 answer

NullReferenceException when make a PUT request using Flurl

I'm constructing a Url and making an PUT request using Flurl, as follows: using (var client = new Url("myurl")) .ConfigureClient(c => c.HttpClientFactory = new CompressHttpClientFactory()) .WithCookie(new System.Net.Cookie("name", "value",…
Ivan-Mark Debono
  • 15,500
  • 29
  • 132
  • 263
0
votes
1 answer

How to make a HTTP request with a custom verb when using Flurl?

I need to send an OPTIONS request. How to I construct the client when using Flurl?
Ivan-Mark Debono
  • 15,500
  • 29
  • 132
  • 263
0
votes
1 answer

How to post to a sign-in form with Flurl

I want to represent a signin in a url(i.e. eclass.aueb.gr) to get the source code of the next page(the portfolio of the user). What i have now, is the code from documentation... var response = await…
0
votes
1 answer

Flurl AddFile fileName Encoding

I try to use flurl to send a file like this: public ImportResponse Import(ImportRequest request, string fileName, Stream stream) { request).PostAsync(content).Result(); return FlurlClient(Routes.Import,…
EKostan
  • 11
  • 4
0
votes
1 answer

How to handle PostJsonAsync() call

Currently I have 3rd party WebApi which has the following external call using Flurl builder. await _client.Url.ToString().PostJsonAsync(data); And I'm trying to handle the response with such endpoint: [HttpPost] public void…
Stanimir Yakimov
  • 864
  • 3
  • 14
  • 31
0
votes
1 answer

Having a little issue with Flurl (are you missing a cast?)

Hello Stackoverflow Users, I just want to use an API of someone, but he did'nt put a release on github so you have to compile the api for yourself. The API im trying to use, is using Flurl, i imported everything but now i have some errors and i…
Percdye7
  • 9
  • 2
0
votes
1 answer

Xamarin how to implement into app the igdb api wrapper installed package

I am attempting to build an application for a personal project using Xamarin in Visual Studio for Android. I am using the internet game database igdb.com api to retrieve the required information based off user filtered search with selected genre,…
Chad Nedin
  • 15
  • 1
  • 7
0
votes
2 answers

Parsing Json Data With Flurl and ASP.net Core

not really sure if I'm asking this in the correct manner. But I am doing a project for my university with CRM systems and API's. Now I found Flurl to help me do my HTTP request. and it works great until I try and do a get all accounts to my free…
0
votes
1 answer

Flurl (Fluent Url) custom serialization

How do I override Flurl's default behaviour when serializing objects to query string values? E.g. the below code DateTime date = new DateTime(2017, 1, 2, 3, 4, 5); Url url = "http://domain.com".SetQueryParam("date", date); produces the following…
Andrew
  • 1,139
  • 1
  • 12
  • 27
0
votes
2 answers

Calling Flurl from winforms app never returns a result

Quick background. Used Flurl inside a class library I built to simplify my code for communicating with a cloud storage api. Works beautifully when calling the library from a console app used to test all of the methods. When attempting to use the…
0
votes
1 answer

Flurl Post Not Returning from Web Api

I've got a Xamarin application using Flurl, with the following post to a Web Api Xamarin App: private async Task processLogin() { try { return await…
Martin Crawley
  • 477
  • 1
  • 7
  • 16
0
votes
1 answer

Flurl Local Host Connection Refused

I have set up Flurl to run within my Xamarin PCL, and I'm calling off to a Web Api I have running in an MVC application. It seems Flurl can hit my deployed API no problem, but I'm unable to test changes locally for some reason. Here's what I'm…
Martin Crawley
  • 477
  • 1
  • 7
  • 16
1 2 3
16
17