Questions tagged [flutter-http]
241 questions
91
votes
1 answer
SocketException: Connection failed (OS Error: Operation not permitted, errno = 1) with flutter app on macOS
I have following code in my Flutter app where MyDataLoader is a widget which starts up from main.dart
Code:
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
class MyDataLoader extends StatefulWidget {
@override
…

TheWaterProgrammer
- 7,055
- 12
- 70
- 159
39
votes
2 answers
How to enable Flutter internet permission for macos desktop app?
I am trying to develop Flutter app which will run also on destkop.
This app is using http package:
import 'package:http/http.dart'
When I am trying to perform http request I am getting this exception:
SocketException: Connection failed (OS Error:…

K.Os
- 5,123
- 8
- 40
- 95
20
votes
6 answers
Flutter: How to increase onSendProgress calls for a fluid progress bar animation while uploading files?
I have the following code to upload a file.
var client = new dio.Dio();
await client.put(
url,
data: formData,
options: dio.Options(
headers: headers,
),
onSendProgress: (int sent, int total) {
final progress = sent / total;
…

Tom Aalbers
- 4,574
- 5
- 29
- 51
14
votes
3 answers
Flutter: How to Refresh token when token expires during http call?
I am new to flutter and I am using http package for network call. I want to refresh token and call the request again if the response code of the request 200. How can I acheive this using http package? I heard about dio package but it is complicated…

techno
- 141
- 1
- 1
- 3
9
votes
1 answer
HTTP3 Client for flutter
Is There a HTTP3 client for dart? There is Flupke in Java, Aioqic in python but I didn't find one for dart as well as flutter

THE_BLESSED_MEDIUM
- 886
- 7
- 12
8
votes
4 answers
Upload Image/File to Strapi (Flutter Web)
I'm trying to upload an image to Strapi through Flutter Web. I'm aware (from this link) that I need to use FormData to do so. I've researched on many ways to do this and I stumble across Dio and of course Http.
Both solutions gave me…

Diego Cattarinich Clavel
- 790
- 1
- 7
- 11
7
votes
1 answer
Why am I getting a ChromeProxyService error with Flutter Web and Chrome
I'm using Flutter version 3.3.8 and Google Chrome version 107.0.5304.110.
I send an http request, and this is the error that I get:
ChromeProxyService: Failed to evaluate expression 'xhr': InternalError: Expression evaluation in async frames is not…

Joel Castro
- 485
- 6
- 20
7
votes
2 answers
how can i parse html in flutter?
I am using Flutter and want to parse HTML using parser.dart
Now
19.8℃
(23℃)