issue_owner_repo listlengths 2 2 | issue_body stringlengths 0 262k ⌀ | issue_title stringlengths 1 1.02k | issue_comments_url stringlengths 53 116 | issue_comments_count int64 0 2.49k | issue_created_at stringdate 1999-03-17 02:06:42 2025-06-23 11:41:49 | issue_updated_at stringdate 2000-02-10 06:43:57 2025-06-23 11:43:00 | issue_html_url stringlengths 34 97 | issue_github_id int64 132 3.17B | issue_number int64 1 215k |
|---|---|---|---|---|---|---|---|---|---|
[
"dart-lang",
"http"
] | The flutter testing cookbook recommends to use http.client rather than http static methods such as post or get for testing.
https://flutter.dev/docs/cookbook/testing/unit/mocking
Can you update the documentation to mention this? Thanks | Update Documentation for testing | https://api.github.com/repos/dart-lang/http/issues/389/comments | 1 | 2020-02-27T20:11:24Z | 2020-03-20T17:21:27Z | https://github.com/dart-lang/http/issues/389 | 572,330,200 | 389 |
[
"dart-lang",
"http"
] | Error:
```
Failed to precompile build_runner:build_runner:
../../../.pub-cache/hosted/pub.dartlang.org/http_multi_server-2.1.0/lib/src/multi_headers.dart:129:8: Error: The method 'MultiHeaders.set' has fewer named arguments than those of overridden method 'HttpHeaders.set'.
void set(String name, Object value) {
... | Incompatible with the latest dart | https://api.github.com/repos/dart-lang/http/issues/1428/comments | 7 | 2020-02-25T15:35:19Z | 2024-12-17T12:51:10Z | https://github.com/dart-lang/http/issues/1428 | 2,744,860,177 | 1,428 |
[
"dart-lang",
"http"
] | Currently there is no way to detach a socket from IOClient responses. This is important when needing to upgrade a socket (i.e. `WebSocket.fromUpgradedSocket()`).
To provide this ability we could extend the `StreamedResponse` class to allow for this method through the `IOClient`.
IOClient Implementation:
```dar... | Support detachSocket() in IOClient responses. | https://api.github.com/repos/dart-lang/http/issues/387/comments | 0 | 2020-02-25T06:17:44Z | 2020-03-11T23:29:09Z | https://github.com/dart-lang/http/issues/387 | 570,338,784 | 387 |
[
"dart-lang",
"http"
] | The application I'm working on stopped working after updating the http flutter / library, it happens that the http request simply doesn't return anything and not even an exception is given, so I don't know what happens because it just doesn't work anymore, it seems to be a bug flutter or even dart, very strange simply ... | There is no http response; | https://api.github.com/repos/dart-lang/http/issues/386/comments | 5 | 2020-02-24T15:25:09Z | 2020-06-16T22:55:49Z | https://github.com/dart-lang/http/issues/386 | 569,930,508 | 386 |
[
"dart-lang",
"http"
] | I'm trying to perform a request to a Web API written in C# (.NET Core). The endpoint runs a async function and return a JSON with result of operation.
In Dart I can't get the response. **then()** or **catchError()** just don't executes.
The endpoint get products in payload. When I send only one product I can get... | The HTTP request is not being executed in response | https://api.github.com/repos/dart-lang/http/issues/384/comments | 11 | 2020-02-17T18:49:07Z | 2021-09-10T16:11:32Z | https://github.com/dart-lang/http/issues/384 | 566,467,393 | 384 |
[
"dart-lang",
"http"
] | <!--
Please describe the bug and how to reproduce it.
Note that if the bug can also be reproduced when going through the interfaces
provided by `dart:html or `dart:io` directly the bug should be filed against
the Dart SDK: https://github.com/dart-lang/sdk/issues
A failure to make an http request is m... | Cannot send body for Delete request ! | https://api.github.com/repos/dart-lang/http/issues/383/comments | 1 | 2020-02-14T09:21:29Z | 2021-01-08T21:59:37Z | https://github.com/dart-lang/http/issues/383 | 565,201,280 | 383 |
[
"dart-lang",
"http"
] | I am trying to do a post request in Flutter
Below is the code
final String url = Urls.HOME_URL;
String p = 'Bearer $vAuthToken';
final Map<String, String> tokenData = {
"Content-Type": "application/x-www-form-urlencoded",
'Vauthtoken': p
};
final Map<String, String> data = {
'classI... | Http Post Headers are not working | https://api.github.com/repos/dart-lang/http/issues/382/comments | 1 | 2020-02-13T20:23:59Z | 2020-02-23T21:52:28Z | https://github.com/dart-lang/http/issues/382 | 564,929,691 | 382 |
[
"dart-lang",
"http"
] | When creating a regular http request and manually using client.send not Header Host is added by default which makes the request fail (normally under 400) against standard web servers like nginx or apache.
Maybe such common header should be added by default? , the same way Content-Type is been added when request.body... | No Host header added. | https://api.github.com/repos/dart-lang/http/issues/381/comments | 2 | 2020-02-12T21:04:07Z | 2023-11-21T21:34:44Z | https://github.com/dart-lang/http/issues/381 | 564,270,141 | 381 |
[
"dart-lang",
"http"
] | <!--
-->
*** Here is the link to the API that i am trying to access on the flutter web with the 'GET' request:
https://cowork.pk/rest/session/token
*** The API totally gives the result when on the mobile
*** Gives error when accessing with the flutter web
*** On flutter web when getting the GET request it cat... | Works on the mobile but not on the web | https://api.github.com/repos/dart-lang/http/issues/380/comments | 1 | 2020-02-12T09:20:56Z | 2020-02-13T01:37:21Z | https://github.com/dart-lang/http/issues/380 | 563,860,914 | 380 |
[
"dart-lang",
"http"
] | <!--
*** Here is the link to the API that i am trying to access on the flutter web with the 'GET' request:
https://cowork.pk/rest/session/token
*** The API totally gives the result when on the mobile
*** Gives error when accessing with the flutter web
*** On flutter web when getting the GET request it catches in... | Works on mobile but not on the web | https://api.github.com/repos/dart-lang/http/issues/379/comments | 1 | 2020-02-12T09:20:24Z | 2020-02-13T01:34:44Z | https://github.com/dart-lang/http/issues/379 | 563,860,658 | 379 |
[
"dart-lang",
"http"
] | <!--
*** Here is the link to the API that i am trying to access on the flutter web with the 'GET' request:
https://cowork.pk/rest/session/token
*** The API totally gives the result when on the mobile
*** Gives error when accessing with the flutter web
*** On flutter web when getting the GET request it catches in... | Http request totally works on mobile but not on the web | https://api.github.com/repos/dart-lang/http/issues/378/comments | 1 | 2020-02-12T09:19:43Z | 2020-02-13T01:34:39Z | https://github.com/dart-lang/http/issues/378 | 563,860,255 | 378 |
[
"dart-lang",
"http"
] |
*** Here is the link to the API that i am trying to access on the flutter web with the 'GET' request:
https://cowork.pk/rest/session/token
*** The API totally gives the result when on the mobile
*** Gives error when accessing with the flutter web
*** On flutter web when getting the GET request it catches in try... | Works totally fine with the mobile but gives error on web | https://api.github.com/repos/dart-lang/http/issues/377/comments | 1 | 2020-02-12T09:15:22Z | 2020-02-13T01:34:32Z | https://github.com/dart-lang/http/issues/377 | 563,857,772 | 377 |
[
"dart-lang",
"http"
] | I get this error when I am trying to send an http.post() request to my express (nodejs) server using an letsencrypt certificate. It works fine if I directly open the url in chrome or firefox, both accept my certificate. I've tried it on an Android emulator too, but that doesn't work either.
Code:
```dart
final h... | CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate using an letsencrypt-signed webserver | https://api.github.com/repos/dart-lang/http/issues/376/comments | 3 | 2020-02-10T16:30:25Z | 2021-10-05T11:44:35Z | https://github.com/dart-lang/http/issues/376 | 562,678,242 | 376 |
[
"dart-lang",
"http"
] | The `dynamic url` which may be either a `String` or `Uri` is not an idiomatic pattern in Dart 2. You lose static checking and are forced to read the doc comment to get help with usage that is normally provided in your IDE. The migration would be easy, shift the `Uri.parse` call to the call site instead of inside the li... | Consider tightening arguments that are `dynamic` | https://api.github.com/repos/dart-lang/http/issues/375/comments | 6 | 2020-02-08T01:29:42Z | 2021-01-14T19:18:14Z | https://github.com/dart-lang/http/issues/375 | 561,949,243 | 375 |
[
"dart-lang",
"http"
] | Hi All,
I am writing a couchdb replication client, according to the couchdb replication protocol.
As per it, my client must make a HTTP PUT request with content type "multipart/request".
I did this by extending the BaseRequest class into : MultipartRelatedRequestExt. [Code shared at bottom]
Now when I do `ins... | No 'data' event firing in nodejs express server, when making HTTP PUT Content-type "multipart/related" request by extending BaseRequest class | https://api.github.com/repos/dart-lang/http/issues/373/comments | 1 | 2020-01-31T23:49:45Z | 2020-03-13T01:58:38Z | https://github.com/dart-lang/http/issues/373 | 558,432,916 | 373 |
[
"dart-lang",
"http"
] | Sometimes it's took about 10 minutes too load API, but it's work normal on other devices. | Some device network type took time too long with Wi-fi or network-data | https://api.github.com/repos/dart-lang/http/issues/372/comments | 1 | 2020-01-31T06:47:03Z | 2021-07-15T23:07:04Z | https://github.com/dart-lang/http/issues/372 | 557,946,877 | 372 |
[
"dart-lang",
"http"
] | <!--
Please describe the feature you'd like to see us implement along with a use
case.
Note that this package is designed to be cross-platform and we will only be
able to add features which can be supported with _both_ `dart:io` and
`dart:html`. If you're looking for a feature which is already suppor... | Is it possible to get the html after JavaScript content of the page gets loaded. | https://api.github.com/repos/dart-lang/http/issues/371/comments | 1 | 2020-01-30T08:02:52Z | 2020-03-14T00:29:28Z | https://github.com/dart-lang/http/issues/371 | 557,327,049 | 371 |
[
"dart-lang",
"http"
] | Issue Error for http library on Firefox, works on Chrome
`import` 'package:http/http.dart' as http;`
http.get("some random url");
flutter --version
`Flutter 1.12.13+hotfix.7 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 9f5ff2306b (3 days ago) • 2020-01-26 22:38:26 -0800
E... | Issue with http library on Firefox, works on Chrome | https://api.github.com/repos/dart-lang/http/issues/370/comments | 2 | 2020-01-29T18:45:21Z | 2021-07-15T23:05:27Z | https://github.com/dart-lang/http/issues/370 | 557,046,738 | 370 |
[
"dart-lang",
"http"
] | Added without forwarding in dart-lang/http_multi_server#22
Once the SDK change is finalized we can publish. Once an SDK is published with the new argument we can pass it through and bump the min SDK constraint. | finalize preserveHeaderCase change | https://api.github.com/repos/dart-lang/http/issues/1427/comments | 5 | 2020-01-29T18:01:23Z | 2024-12-17T12:51:10Z | https://github.com/dart-lang/http/issues/1427 | 2,744,860,160 | 1,427 |
[
"dart-lang",
"http"
] | Hi guys!
I have post request with a body that look like this:
```
[
{
"text": "Some String",
},
{
"text": "Another String",
}
]
```
For reference:
Future<Response> post(url, {Map<String, String> headers, body, Encoding encoding});
Now I can pass the body as String, but I would pre... | Accept array of maps as client.post body parameter | https://api.github.com/repos/dart-lang/http/issues/369/comments | 0 | 2020-01-29T15:15:47Z | 2020-01-29T15:15:47Z | https://github.com/dart-lang/http/issues/369 | 556,928,754 | 369 |
[
"dart-lang",
"http"
] | Reading RFC 6266 and RFC 2388 and looking at my Eiffel web framework server side library code, to handle uploading of files using multipart/form-data it seems something is off somewhere.
It seems that the class MultipartRequest from your library is doing it wrong and I want to find out if this is true.
When a bro... | Header for file not correct in multipart request and headers in reverse order? | https://api.github.com/repos/dart-lang/http/issues/368/comments | 6 | 2020-01-26T16:42:02Z | 2024-03-26T02:41:10Z | https://github.com/dart-lang/http/issues/368 | 555,254,549 | 368 |
[
"dart-lang",
"http"
] | **Current State:**
When getting a Response with `Content-Type application/json` the library defaults to using latin1 as encoding because the `charset` param is not set in the `Content-Type`-Header.
See docs Response#body method:
```
/// The body of the response as a string.
///
/// This is converted from [b... | Default encoding for Content-Type application/json should be UTF-8 | https://api.github.com/repos/dart-lang/http/issues/367/comments | 6 | 2020-01-22T10:09:21Z | 2021-07-16T20:36:35Z | https://github.com/dart-lang/http/issues/367 | 553,435,459 | 367 |
[
"dart-lang",
"http"
] | I am stuck with the following error in flutter after upgrading I am on the stable channel with the latest build
Compiler message:
```
lib/views/note_detail.dart:1:8: Error: Not found: 'dart:html'
import 'dart:html';
^
/F:/Flutter/flutter/packages/flutter/lib/src/painting/_network_image_web.dart:64:12: ... | Error: Not found: 'dart:html' | https://api.github.com/repos/dart-lang/http/issues/1582/comments | 7 | 2020-01-19T13:23:33Z | 2025-01-22T16:04:05Z | https://github.com/dart-lang/http/issues/1582 | 2,804,776,767 | 1,582 |
[
"dart-lang",
"http"
] | This is either a regression in package version 0.12.0 or there is a tighter type check in Dart 2.7.0.
When making a request with this library, if the underlying connection is terminated, this package throws a type error instead of calling an error handler. A simple repro case and stack trace are included below:
... | Type error thrown when making HTTP request and the connection is terminated | https://api.github.com/repos/dart-lang/http/issues/366/comments | 1 | 2020-01-16T00:23:29Z | 2021-07-15T22:34:20Z | https://github.com/dart-lang/http/issues/366 | 550,502,793 | 366 |
[
"dart-lang",
"http"
] | Response headers in the package http parse the 'content-length, content-type' only. Will it support to parse all the return headers, like self define header 'XXX: YYY'? | about self define Response headers | https://api.github.com/repos/dart-lang/http/issues/363/comments | 5 | 2020-01-13T15:08:07Z | 2020-02-12T23:56:57Z | https://github.com/dart-lang/http/issues/363 | 548,991,562 | 363 |
[
"dart-lang",
"http"
] | api server: Django3.0.2
client test: dio: 3.0.8 and http: ^0.12.0
I test login , code like this:
```
import 'package:dio/dio.dart';
import 'package:http/http.dart' as http;
import 'package:flutter_test/flutter_test.dart';
void main() {
test('tes django login view', () async {
try {
// dio ... | About http POST Response.headers set-cookie | https://api.github.com/repos/dart-lang/http/issues/362/comments | 6 | 2020-01-09T12:18:21Z | 2024-01-12T21:36:44Z | https://github.com/dart-lang/http/issues/362 | 547,443,955 | 362 |
[
"dart-lang",
"http"
] | Hello
I use https://adonisjs.com/docs/4.1/websocket How i can subscribe channel topic | subscribe websocket channel topic | https://api.github.com/repos/dart-lang/http/issues/1581/comments | 1 | 2020-01-09T08:38:07Z | 2025-01-22T16:04:04Z | https://github.com/dart-lang/http/issues/1581 | 2,804,776,751 | 1,581 |
[
"dart-lang",
"http"
] | <!--
Please describe the bug and how to reproduce it.
Note that if the bug can also be reproduced when going through the interfaces
provided by `dart:html or `dart:io` directly the bug should be filed against
the Dart SDK: https://github.com/dart-lang/sdk/issues
A failure to make an http request is m... | Exception occurs if null is set to the value of fields of multipartrequest. | https://api.github.com/repos/dart-lang/http/issues/361/comments | 1 | 2020-01-09T06:56:56Z | 2020-03-31T08:36:36Z | https://github.com/dart-lang/http/issues/361 | 547,287,617 | 361 |
[
"dart-lang",
"http"
] | I want to skip certificate verify. How do solve this problem? | WebSocketChannelException: WebSocketChannelException: HandshakeException: Handshake error in client CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:354)) | https://api.github.com/repos/dart-lang/http/issues/1580/comments | 6 | 2020-01-07T07:45:11Z | 2025-01-22T16:04:04Z | https://github.com/dart-lang/http/issues/1580 | 2,804,776,730 | 1,580 |
[
"dart-lang",
"http"
] | I am testing with http proxy setting in my Android device.
Here is my http code.
```
final response = await http.post(
url,
headers: {"Accept": "application/json"},
body: params);
if (response.statusCode == 200) {
// If the call to the server was successful, parse the JSON.
p... | The strange html response with proxy setting | https://api.github.com/repos/dart-lang/http/issues/358/comments | 1 | 2020-01-03T15:53:01Z | 2020-01-03T19:12:36Z | https://github.com/dart-lang/http/issues/358 | 545,048,807 | 358 |
[
"dart-lang",
"http"
] | How can I change content-type with a POST request? | https://api.github.com/repos/dart-lang/http/issues/357/comments | 5 | 2020-01-03T11:14:56Z | 2020-08-13T17:55:13Z | https://github.com/dart-lang/http/issues/357 | 544,952,244 | 357 | |
[
"dart-lang",
"http"
] | **The request was rejected because no multipart boundary was found**
```
Future<StreamedResponse> uploadImage(File file) async {
String _url = URLConstant.baseURL + this.url;
final headers = Map<String, String>();
headers[Constant.contentType] = 'multipart/form-data';
headers[Constant.headerAPI] ... | The request was rejected because no multipart boundary was found | https://api.github.com/repos/dart-lang/http/issues/355/comments | 3 | 2020-01-02T05:08:06Z | 2020-01-03T20:36:24Z | https://github.com/dart-lang/http/issues/355 | 544,448,186 | 355 |
[
"dart-lang",
"http"
] | 
It's possible to connect to https server without valid certificate like this?
Thank for the awesome package. | Connect to HTTPS with invalid certificate | https://api.github.com/repos/dart-lang/http/issues/1579/comments | 1 | 2019-12-30T12:44:45Z | 2025-01-22T16:04:03Z | https://github.com/dart-lang/http/issues/1579 | 2,804,776,715 | 1,579 |
[
"dart-lang",
"http"
] | Hello! Thanks for the lib). I ran into the following problem. When server send me goaway frame, StreamHandler class create following exception:
`StreamException(
id,
'Remote end was telling us to stop. This stream was not processed '
'and can therefore be retried (on a new connection... | Can't catch exception occur during goaway frame | https://api.github.com/repos/dart-lang/http/issues/1364/comments | 0 | 2019-12-30T07:42:08Z | 2024-10-18T09:08:04Z | https://github.com/dart-lang/http/issues/1364 | 2,596,930,790 | 1,364 |
[
"dart-lang",
"http"
] | Content-Type header is not included in request when sending MultipartRequest.
```dart
import 'package:http/http.dart' as http;
import 'package:http_parser/http_parser.dart' as mime;
void main() {
_run();
}
Future<void> _run() async {
final uri = Uri.parse("http://localhost:8080/aaa");
final req = h... | MultipartRequest does not contain Content-Type header | https://api.github.com/repos/dart-lang/http/issues/351/comments | 10 | 2019-12-27T06:07:43Z | 2020-11-19T02:20:56Z | https://github.com/dart-lang/http/issues/351 | 542,758,989 | 351 |
[
"dart-lang",
"http"
] | Trying to post to a device on the local network from dart http package (via flutter app on android), and always get: Failed host lookup: 'somedomain.local'
Works great from curl and postman on the mac.
Really need this to work for an IoT project where we have a device on the local network that uses .local to show... | Failed host lookup: 'somedomain.local' | https://api.github.com/repos/dart-lang/http/issues/346/comments | 1 | 2019-11-19T23:35:40Z | 2019-11-27T20:20:16Z | https://github.com/dart-lang/http/issues/346 | 525,330,543 | 346 |
[
"dart-lang",
"http"
] | I don't know why I'm receiving this error:
Exception has occurred.
_TypeError (type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>')
I used build_runner for BaseResponse.dart. Then on the page that I want to display the data on, I wrote the following:
List < BaseResponse > pEShi... | Exception has occurred. _TypeError (type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>') | https://api.github.com/repos/dart-lang/http/issues/345/comments | 2 | 2019-11-19T21:37:35Z | 2019-11-27T20:23:53Z | https://github.com/dart-lang/http/issues/345 | 525,282,564 | 345 |
[
"dart-lang",
"http"
] | I was surprised when streaming in a response, the chunks were `List<int>`, not `Uint8List`
```dart
var bytes = 0;
await for (final chunk in response.stream) {
bytes += chunk.lengthInBytes; // nope, it's a List<int>
}
``` | ByteStream should work with bytes (Uint8List), not List<int> | https://api.github.com/repos/dart-lang/http/issues/343/comments | 1 | 2019-11-16T20:16:26Z | 2025-05-02T21:22:34Z | https://github.com/dart-lang/http/issues/343 | 523,890,913 | 343 |
[
"dart-lang",
"http"
] | I can't acces to the class which is called MediaType | Undefined class MediaType | https://api.github.com/repos/dart-lang/http/issues/342/comments | 1 | 2019-11-13T21:28:11Z | 2019-11-13T22:23:41Z | https://github.com/dart-lang/http/issues/342 | 522,482,992 | 342 |
[
"dart-lang",
"http"
] | When I connect to wss I get this error
Unhandled Exception: HandshakeException: Handshake error in client (OS Error:
E/flutter (18373): CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:352)) | Wss error | https://api.github.com/repos/dart-lang/http/issues/1578/comments | 2 | 2019-11-07T11:13:09Z | 2025-01-22T16:04:03Z | https://github.com/dart-lang/http/issues/1578 | 2,804,776,693 | 1,578 |
[
"dart-lang",
"http"
] | <!--
the bug and how to reproduce it.
*When I use http.delete() for the DELETE method network interaction, the server has an exception: org.springframework.web.HttpRequestMethodNotSupportedException: The request method "GET" is not supported
*No problem when interacting with the network using http.get() and h... | The problem no longer exists | https://api.github.com/repos/dart-lang/http/issues/341/comments | 1 | 2019-11-07T08:59:18Z | 2019-11-07T10:27:38Z | https://github.com/dart-lang/http/issues/341 | 519,128,841 | 341 |
[
"dart-lang",
"http"
] | I am using the http 0.12.0 package in an AngularDart project, and I need a way to handle the error "REFUSED Connection" and "ERR_NAME_NOT_RESOLVED" to display a more user friendly message. Is it possible to do this somehow with the http package?
Maybe it would be nice if instead of throwing an exception, returning a... | There has to be some way to handle REFUSED connection | https://api.github.com/repos/dart-lang/http/issues/340/comments | 1 | 2019-11-04T18:00:40Z | 2021-07-15T22:35:33Z | https://github.com/dart-lang/http/issues/340 | 517,312,939 | 340 |
[
"dart-lang",
"http"
] | hi, i need to include some payload(body raw) on method get.
any example of that?
one more question, how to send body payload as Map<String, Object> instead of Map<String, String> ??
i've got an error
Map<String, Object>' is not a subtype of type 'String' | Raw Body on Method Get | https://api.github.com/repos/dart-lang/http/issues/339/comments | 2 | 2019-11-03T10:11:47Z | 2021-07-15T23:04:59Z | https://github.com/dart-lang/http/issues/339 | 516,806,476 | 339 |
[
"dart-lang",
"http"
] | Here is my MultiPartRequest code
```
var request =
http.MultipartRequest("POST", Uri.parse(EMPLOYEE_PUNCH_IN_URL));
request.fields['uid'] = userId;
request.fields['location'] = location;
request.fields['punchin_time'] = punchInTime;
request.fields['punchin_location... | Http Timeout does not work for MultiPart request | https://api.github.com/repos/dart-lang/http/issues/338/comments | 1 | 2019-10-31T16:28:30Z | 2019-12-30T12:20:00Z | https://github.com/dart-lang/http/issues/338 | 515,572,457 | 338 |
[
"dart-lang",
"http"
] | Have a Flutter App that is able to receive SSE text/event-stream events when running on mobile but it is not receiving the same SSE text/event-stream events when running on the chrome web.
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
void main() => runApp(MyApp());
clas... | Unable to Receive SSE Events when running as a Flutter Web app on Chrome Web | https://api.github.com/repos/dart-lang/http/issues/337/comments | 20 | 2019-10-28T16:24:42Z | 2023-12-28T06:56:47Z | https://github.com/dart-lang/http/issues/337 | 513,413,129 | 337 |
[
"dart-lang",
"http"
] | how to parse the GZIP compressed data returned by the ws subscription(example: wss://api.huobi.pro/ws)
as package:http,i can use like this:
var bytes = response.bodyBytes;
var inflated = zlib.decode(bytes);
var data = utf8.decode(inflated);
json.decode(data);
| how to parse the GZIP compressed data returned by the ws subscription | https://api.github.com/repos/dart-lang/http/issues/1577/comments | 0 | 2019-10-24T16:39:55Z | 2025-01-22T16:04:03Z | https://github.com/dart-lang/http/issues/1577 | 2,804,776,679 | 1,577 |
[
"dart-lang",
"http"
] | how to use proxy?
such as wss://api.huobi.pro/ws can't connect in china,we must use proxy
| how to use proxy? | https://api.github.com/repos/dart-lang/http/issues/1576/comments | 7 | 2019-10-24T16:31:36Z | 2025-01-22T16:04:02Z | https://github.com/dart-lang/http/issues/1576 | 2,804,776,664 | 1,576 |
[
"dart-lang",
"http"
] | > 10-21 21:15:51.328 608 22064 I GRALLOC : iova_size=9265152,conUsg=0xb00,proUsg=0xb00, strd=1088,[afbc]HdrStrd=1088 PyldStrd=69632 Scrmbl=2,ionhnd = 1
> 10-21 21:15:51.337 16980 17017 E flutter : [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: SocketException: Failed host lookup: 'ani... | Failed host lookup on release but works on dev build | https://api.github.com/repos/dart-lang/http/issues/336/comments | 1 | 2019-10-21T13:29:59Z | 2019-10-21T19:28:37Z | https://github.com/dart-lang/http/issues/336 | 509,964,152 | 336 |
[
"dart-lang",
"http"
] | http.MultiparFile.fromPath() just only upload one file
so how to upload multiple files? | how to upload multiple files | https://api.github.com/repos/dart-lang/http/issues/335/comments | 1 | 2019-10-18T09:23:04Z | 2024-06-28T22:55:00Z | https://github.com/dart-lang/http/issues/335 | 508,959,674 | 335 |
[
"dart-lang",
"http"
] | Caching responses on the client side is a fundamental part of HTTP functionality. While there are other packages that support this, it seems like this should be a basic part of this package. Since this package is meant to be a basic Dart package, perhaps providing an interface that can be implemented for different Dart... | Add caching support | https://api.github.com/repos/dart-lang/http/issues/334/comments | 3 | 2019-10-17T16:23:57Z | 2022-09-17T02:58:46Z | https://github.com/dart-lang/http/issues/334 | 508,586,479 | 334 |
[
"dart-lang",
"http"
] | Hi! I'm trying to use this package for a SSE server behind a http2 proxy.
I'm able to connect to the server and get the first response but I'm unable to get the event's coming after the `stream.incomingMessages` only seems to return the values in the first response.
Any idea how I should solve this? | Eventsource | https://api.github.com/repos/dart-lang/http/issues/1363/comments | 0 | 2019-10-17T10:53:44Z | 2024-10-18T09:08:04Z | https://github.com/dart-lang/http/issues/1363 | 2,596,930,777 | 1,363 |
[
"dart-lang",
"http"
] | guys i really need help on that i want to access this website (http://1.0.0.1/orion/summary.aspx) it redirect me to this website (http://1.0.0.1/orion/login.aspx) i tried many authentications tech but it didn't work all give 401 sample of the code is below
```dart
Future getData() async {
// NTLMClient ntlmClient... | HTTP authentication fails really need support | https://api.github.com/repos/dart-lang/http/issues/333/comments | 7 | 2019-10-17T10:18:11Z | 2024-01-13T00:26:28Z | https://github.com/dart-lang/http/issues/333 | 508,377,872 | 333 |
[
"dart-lang",
"http"
] | I need to connect to specific channel inside the web socket like rooms in life chat but I don not know how to do this. | How to connect to specific channel inside the web socket? | https://api.github.com/repos/dart-lang/http/issues/1575/comments | 1 | 2019-10-16T11:46:21Z | 2025-01-22T16:04:02Z | https://github.com/dart-lang/http/issues/1575 | 2,804,776,639 | 1,575 |
[
"dart-lang",
"http"
] | There are simple fixes that will improve the package health, that are mentioned in the suggestions.
[Fixes for package health](https://github.com/dart-lang/http2/pull/47) | Improve the package health | https://api.github.com/repos/dart-lang/http/issues/1362/comments | 1 | 2019-10-12T09:07:53Z | 2024-10-18T09:08:03Z | https://github.com/dart-lang/http/issues/1362 | 2,596,930,763 | 1,362 |
[
"dart-lang",
"http"
] | Hello Everyone
I have an internal website that uses login page then summary page
when i put the login page in the http.get it return 200 authentication succeeded but it doesn't retrieve any information
when i put the link for the summary page (that have the information i need) in the http.get authentication fail... | HTTP request Auth Error | https://api.github.com/repos/dart-lang/http/issues/330/comments | 4 | 2019-10-10T06:28:03Z | 2021-07-15T22:38:56Z | https://github.com/dart-lang/http/issues/330 | 505,063,609 | 330 |
[
"dart-lang",
"http"
] | I want to create a login request and set a timeout of 5s.
If I use this code:
```dart
Future<void> login(String email, String password) async {
final body = { 'email': email, 'password': password };
final client = http.Client();
http.Response res;
try {
res = await client
.post(
... | Cannot catch SocketException when using .timeout() | https://api.github.com/repos/dart-lang/http/issues/329/comments | 9 | 2019-10-09T09:21:32Z | 2022-12-01T20:54:11Z | https://github.com/dart-lang/http/issues/329 | 504,522,590 | 329 |
[
"dart-lang",
"http"
] | IOWebSocketChannel not working in WEB project (Linux platform).
.connect(....) throws exception: NoSuchMethodError: invalid member on null: 'openUrl'
_channel = new IOWebSocketChannel.connect('wss://$_url/'); | in WEB project throws exception: NoSuchMethodError: invalid member on null: 'openUrl' | https://api.github.com/repos/dart-lang/http/issues/1574/comments | 3 | 2019-10-09T07:57:48Z | 2025-01-22T16:04:01Z | https://github.com/dart-lang/http/issues/1574 | 2,804,776,615 | 1,574 |
[
"dart-lang",
"http"
] | I want to use it in flutter web and flutter, however got these errors
Flutter 1.10.7 • channel dev • https://github.com/flutter/flutter.git
Framework • revision e70236e36c (17 hours ago) • 2019-10-02 09:32:30 -0700
Engine • revision 9e6314d348
Tools • Dart 2.6.0 (build 2.6.0-dev.0.0 1103600280)
===============... | Error: Not found: 'dart:html' | https://api.github.com/repos/dart-lang/http/issues/1573/comments | 1 | 2019-10-04T01:33:25Z | 2025-01-22T16:03:51Z | https://github.com/dart-lang/http/issues/1573 | 2,804,776,230 | 1,573 |
[
"dart-lang",
"http"
] | Package version: **1.0.0**
Steps to reproduce:
- Open ClientTransportConnection to e.g. **https://www.google.com**
- Make a request containing an arbitrary header that has uppercase letter in its name:
```
final transport = ClientTransportConnection.viaSocket(socket);
final stream = transport.makeReques... | Making a request with header name containing uppercase letter results in the stream termination | https://api.github.com/repos/dart-lang/http/issues/1361/comments | 3 | 2019-09-24T11:52:14Z | 2024-10-18T09:08:02Z | https://github.com/dart-lang/http/issues/1361 | 2,596,930,701 | 1,361 |
[
"dart-lang",
"http"
] | Python server which sends back 2 messages to the client:
```
class GuiServer(WebSocket):
def handleConnected(self):
self.sendMessage(jsonString(data1))
self.sendMessage(jsonString(data2))
```
My Python websocket client gets this messages ok, but IOWebSocketChannel loses first message and g... | IOWebSocketChannel loses the first message if they come from the server more than one when connecting | https://api.github.com/repos/dart-lang/http/issues/1572/comments | 4 | 2019-09-22T06:45:31Z | 2025-01-22T16:03:50Z | https://github.com/dart-lang/http/issues/1572 | 2,804,776,211 | 1,572 |
[
"dart-lang",
"http"
] | How do i set http connection timeout and retry programmatically?
Need details on http timeout & retry | How do i set http connection timeout and retry programmatically? | https://api.github.com/repos/dart-lang/http/issues/326/comments | 4 | 2019-09-19T11:06:34Z | 2023-05-06T18:47:34Z | https://github.com/dart-lang/http/issues/326 | 495,730,413 | 326 |
[
"dart-lang",
"http"
] | I running this peace of code:
```dart
var url = 'http://10.0.2.2:8888/login';
var response = await http.post(url, headers: {"Content-Type": "application/json"}, body: json.encode({"user": 'testUser', "password": 'testPassword'}));
```
This running just fine on `Android` but when running on `ios` simulator/real dev... | SocketException: OS Error: Operation timed out on IOS but not on Android | https://api.github.com/repos/dart-lang/http/issues/324/comments | 4 | 2019-09-18T07:27:12Z | 2023-10-16T21:13:39Z | https://github.com/dart-lang/http/issues/324 | 495,039,532 | 324 |
[
"dart-lang",
"http"
] | ```
//server code
class GuiServer(WebSocket):
def handleConnected(self):
self.sendMessage(json(initInfo)) #init message
```
Without sending back initial message connection works, but with it I got the exception:
[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: WebSocketChannelExcep... | An exception if the server sends message when connecting | https://api.github.com/repos/dart-lang/http/issues/1571/comments | 3 | 2019-09-14T21:53:54Z | 2025-01-22T16:03:50Z | https://github.com/dart-lang/http/issues/1571 | 2,804,776,193 | 1,571 |
[
"dart-lang",
"http"
] | Such code causes immediate stream closing (the server reports) without any exceptions and messages:
```
serverChannel = IOWebSocketChannel.connect('ws://localhost:1234');
...
StreamBuilder(
stream: serverChannel.stream,
builder: (context, snapshot) => snapshot.data == null ?... | Using IOWebSocketChannel stream inside StreamBuilder causes its closing | https://api.github.com/repos/dart-lang/http/issues/1570/comments | 0 | 2019-09-14T21:24:38Z | 2025-01-22T16:03:50Z | https://github.com/dart-lang/http/issues/1570 | 2,804,776,182 | 1,570 |
[
"dart-lang",
"http"
] | When sending a string to the server using IOWebSocketChannel the sending is ok.
But when the argument is an array of strings, got the topic exception.
> serverChannel.sink.add(result); | [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: Invalid argument(s) | https://api.github.com/repos/dart-lang/http/issues/1569/comments | 6 | 2019-09-14T21:09:09Z | 2025-01-22T16:03:49Z | https://github.com/dart-lang/http/issues/1569 | 2,804,776,172 | 1,569 |
[
"dart-lang",
"http"
] | I have two questions:
1. I don't know how to send data with post method.
2. how to set proxy.
Thanks. | how to set proxy ? | https://api.github.com/repos/dart-lang/http/issues/1360/comments | 3 | 2019-09-13T01:09:19Z | 2024-10-18T09:08:01Z | https://github.com/dart-lang/http/issues/1360 | 2,596,930,690 | 1,360 |
[
"dart-lang",
"http"
] | I'm using a library that is using this package under the hood, once I'm trying to run `flutter build web --release` I'm getting this error:
```
Dart2Js finished with:
packages/http/src/multipart_file.dart:14:8:
Error: Error when reading 'packages/http/src/multip... | Support flutter web release build | https://api.github.com/repos/dart-lang/http/issues/303/comments | 3 | 2019-09-12T11:20:54Z | 2019-09-16T21:17:27Z | https://github.com/dart-lang/http/issues/303 | 492,743,568 | 303 |
[
"dart-lang",
"http"
] | Request can go through proxy
maybe something like this
```dart
http.get(String url, {String proxy, ...});
``` | http and socks5 proxy | https://api.github.com/repos/dart-lang/http/issues/301/comments | 4 | 2019-09-09T09:06:28Z | 2020-09-18T02:41:25Z | https://github.com/dart-lang/http/issues/301 | 490,972,964 | 301 |
[
"dart-lang",
"http"
] | Exception has occurred.
SocketException (SocketException: OS Error: Connection refused, errno = 111, address = 192.168.1.101, port = 60000) | 不知道中文能不能看懂,当后台关上后,http 直接内部错误,连不到后台,除了用try.catch捕获,关键点是直接报错了,并不会出现错误码让你去判断 | https://api.github.com/repos/dart-lang/http/issues/298/comments | 3 | 2019-09-06T09:42:19Z | 2021-07-15T22:36:07Z | https://github.com/dart-lang/http/issues/298 | 490,232,629 | 298 |
[
"dart-lang",
"http"
] | enviroment:
macos 10.14.6
dart 2.4.0
http 0.12.0+2
code:
_handleSubmitted(int flag) async {
print('Submitted');
var url = "https://www.sogo.com";
var response = await http.get(url); // hang here
print('Response status: ${response.statusCode}'); // no print
print('end submit'); // no p... | http.get hang no response with webdev | https://api.github.com/repos/dart-lang/http/issues/297/comments | 4 | 2019-09-06T05:06:53Z | 2021-07-15T22:37:44Z | https://github.com/dart-lang/http/issues/297 | 490,131,526 | 297 |
[
"dart-lang",
"http"
] | I am trying to instantiate an object of type MultipartFile and stuck with a compile error
```
import 'package:http/http.dart';
...
MultipartFile.fromPath('files', '', contentType: MediaType('image', ''));
```
=>
`error: The method 'MediaType' isn't defined for the class '_MyHomePageState'. (undefined_method ... | MediaType compile error | https://api.github.com/repos/dart-lang/http/issues/296/comments | 3 | 2019-09-04T10:48:59Z | 2023-04-20T01:24:32Z | https://github.com/dart-lang/http/issues/296 | 489,085,055 | 296 |
[
"dart-lang",
"http"
] | One is unable to set a custom boundary value as it is hardcoded with "dart-http-boundary-".
Useful to exactly mimic web browsers. | Consider making multipart_request boundary configurable | https://api.github.com/repos/dart-lang/http/issues/295/comments | 0 | 2019-09-03T18:12:30Z | 2019-09-10T20:43:56Z | https://github.com/dart-lang/http/issues/295 | 488,749,439 | 295 |
[
"dart-lang",
"http"
] | I use
`IOWebSocketChannel channel = IOWebSocketChannel.connect(#Some local websocket ip);` | My websocket app work on debug mode but doesn't on release mode | https://api.github.com/repos/dart-lang/http/issues/1568/comments | 8 | 2019-09-03T04:59:36Z | 2025-01-22T16:03:49Z | https://github.com/dart-lang/http/issues/1568 | 2,804,776,155 | 1,568 |
[
"dart-lang",
"http"
] | This results to `webdev serve` being unable to serve https on Docker container.
Related info: https://github.com/dart-lang/webdev/issues/618 | There is no bindSecure method. | https://api.github.com/repos/dart-lang/http/issues/1426/comments | 0 | 2019-08-28T04:12:34Z | 2024-12-17T12:51:09Z | https://github.com/dart-lang/http/issues/1426 | 2,744,860,143 | 1,426 |
[
"dart-lang",
"http"
] | <!--
Please describe the feature you'd like to see us implement along with a use
case.
Note that this package is designed to be cross-platform and we will only be
able to add features which can be supported with _both_ `dart:io` and
`dart:html`. If you're looking for a feature which is already suppor... | I have to add headers to every HTTP so how can I extract it out and add it in one place | https://api.github.com/repos/dart-lang/http/issues/294/comments | 3 | 2019-08-27T07:47:30Z | 2020-03-13T01:10:51Z | https://github.com/dart-lang/http/issues/294 | 485,643,513 | 294 |
[
"dart-lang",
"http"
] | <!--
Please describe the feature you'd like to see us implement along with a use
case.
Note that this package is designed to be cross-platform and we will only be
able to add features which can be supported with _both_ `dart:io` and
`dart:html`. If you're looking for a feature which is already suppor... | Get final redirected URL from response | https://api.github.com/repos/dart-lang/http/issues/293/comments | 8 | 2019-08-12T14:52:59Z | 2024-01-16T22:44:34Z | https://github.com/dart-lang/http/issues/293 | 479,690,951 | 293 |
[
"dart-lang",
"http"
] | Spawned from https://github.com/dart-lang/labs/issues/165
`package:appengine` registers a single `gcloud:DatastoreDB` instance upon server startup, which triggers the following objects to be persisted as part of its object graph:
* ↳ gcloud:DatastoreDB maintains a reference to a `gcloud:Datastore`
* (implemen... | GoawayFrame puts http2 connection in a bad state | https://api.github.com/repos/dart-lang/http/issues/1359/comments | 4 | 2019-08-11T00:15:53Z | 2024-10-18T09:08:01Z | https://github.com/dart-lang/http/issues/1359 | 2,596,930,673 | 1,359 |
[
"dart-lang",
"http"
] | I'm trying to make http request on android 9, but it fails, stack trace is below. For other versions of android it works fine, the issue is only related with android 9, I have also tried to add android:usesCleartextTraffic="true" attribute to android manifest, but it doesn't help.
Stacktrace
```
E/flutter... | Http request is failing on Android 9, but works on earlier versions on android | https://api.github.com/repos/dart-lang/http/issues/292/comments | 2 | 2019-08-06T10:58:11Z | 2019-10-19T21:29:25Z | https://github.com/dart-lang/http/issues/292 | 477,312,494 | 292 |
[
"dart-lang",
"http"
] | My code below,but I caught a ANR ,I want know the correct method to reconnect, thx.
```
_listen() async {
_channel.stream.listen((message) {
}, onError: (error) async {
Fluttertoast.showToast(msg: "onerror");
await Future.delayed(Duration(milliseconds: 1000));
reConnect();
}, onD... | How to reconnect and resend request? | https://api.github.com/repos/dart-lang/http/issues/1567/comments | 2 | 2019-08-02T08:46:51Z | 2025-01-22T16:03:48Z | https://github.com/dart-lang/http/issues/1567 | 2,804,776,136 | 1,567 |
[
"dart-lang",
"http"
] | **********************************************************
**This is not the repository you want to file issues in!**
**********************************************************
Note that a failing HTTP connection is almost certainly not caused by a bug in
package:http.
This package is a wrapper around the Http... | http dont load last object | https://api.github.com/repos/dart-lang/http/issues/291/comments | 4 | 2019-07-30T12:01:34Z | 2019-07-31T21:40:48Z | https://github.com/dart-lang/http/issues/291 | 474,543,711 | 291 |
[
"dart-lang",
"http"
] | Does http have a cache?
becuse when load a list of data with http get method dont get last object While showing it in postman | has http cash | https://api.github.com/repos/dart-lang/http/issues/290/comments | 0 | 2019-07-30T11:52:32Z | 2019-07-30T12:00:57Z | https://github.com/dart-lang/http/issues/290 | 474,539,750 | 290 |
[
"dart-lang",
"http"
] | null | How to connect websocket server with username and password? | https://api.github.com/repos/dart-lang/http/issues/1566/comments | 0 | 2019-07-27T15:03:28Z | 2025-01-22T16:03:48Z | https://github.com/dart-lang/http/issues/1566 | 2,804,776,122 | 1,566 |
[
"dart-lang",
"http"
] |
When I try consumes rest api using http.get or post with headers, the request http method changed to OPTIONS instead of GET or POST. But, it's working normally when headers is set to NULL value.
| wrong http method on http.get or http.post with headers on flutter web | https://api.github.com/repos/dart-lang/http/issues/289/comments | 3 | 2019-07-27T05:06:54Z | 2019-12-18T18:11:46Z | https://github.com/dart-lang/http/issues/289 | 473,599,695 | 289 |
[
"dart-lang",
"http"
] | The original package `Websocket` support `onOpen` event, but I didn't see any documentation about this in this repo's doc.
| Does this support onOpen event? | https://api.github.com/repos/dart-lang/http/issues/1565/comments | 2 | 2019-07-22T02:48:27Z | 2025-01-22T16:03:51Z | https://github.com/dart-lang/http/issues/1565 | 2,804,776,106 | 1,565 |
[
"dart-lang",
"http"
] | Specific event listener is necessary in some scenarios. Hope to have it. | Will this support listener to specific event? | https://api.github.com/repos/dart-lang/http/issues/1564/comments | 5 | 2019-07-15T15:48:51Z | 2025-01-22T16:03:47Z | https://github.com/dart-lang/http/issues/1564 | 2,804,776,091 | 1,564 |
[
"dart-lang",
"http"
] | E/flutter (32734): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: WebSocketChannelException: WebSocketChannelException: SocketException: OS Error: No route to host, errno = 113, address = 192.168.0.49, port = 50777
E/flutter (32734): #0 new IOWebSocketChannel._withoutSocket.<anonymous closure> ... | Android Studio Updated and now My wroking websocket not working | https://api.github.com/repos/dart-lang/http/issues/1603/comments | 3 | 2019-07-11T04:59:17Z | 2025-01-22T16:04:47Z | https://github.com/dart-lang/http/issues/1603 | 2,804,778,375 | 1,603 |
[
"dart-lang",
"http"
] | I've tried to build project that uses this package on master
It throws an error
```
$ flutter run -d chrome
Downloading Web SDK... 1.6s
Error compiling dartdevc module:http|lib/http.ddc.js
packages/http/src/multipart_file.dart:14:8: Error: Error when reading 'pac... | Flutter Web compilation error: File not found | https://api.github.com/repos/dart-lang/http/issues/288/comments | 12 | 2019-07-10T16:04:58Z | 2019-08-09T16:07:46Z | https://github.com/dart-lang/http/issues/288 | 466,395,104 | 288 |
[
"dart-lang",
"http"
] | After adding web_socket_channel: ^1.0.12 to the pubspec.yaml and flutter packages get, flutter
does not recognize the imports and shows me the following message after hovering on the imports :
Target of URI doesn't exist: 'package:web_socket_channel/io.dart'.
Target of URI doesn't exist: 'package:web_socket_chan... | flutter does not recognize packages's imports | https://api.github.com/repos/dart-lang/http/issues/1602/comments | 1 | 2019-07-10T10:24:18Z | 2025-01-22T16:04:46Z | https://github.com/dart-lang/http/issues/1602 | 2,804,778,366 | 1,602 |
[
"dart-lang",
"http"
] | The current package doesn't work with Flutter Web and I get the following error :
```shell
transitive libraries have sdk dependencies that not supported on this platform:
web_socket_channel|lib/io.dart
```
Conditional imports (like implemented in the [http's client](https://github.com/dart-lang/http/blob/777... | Conditional platform imports | https://api.github.com/repos/dart-lang/http/issues/1601/comments | 3 | 2019-07-09T09:31:43Z | 2025-01-22T16:04:46Z | https://github.com/dart-lang/http/issues/1601 | 2,804,778,343 | 1,601 |
[
"dart-lang",
"http"
] | How to use self signed certs? | How to use self signed certs? | https://api.github.com/repos/dart-lang/http/issues/1600/comments | 4 | 2019-07-02T01:40:38Z | 2025-01-22T16:04:45Z | https://github.com/dart-lang/http/issues/1600 | 2,804,778,325 | 1,600 |
[
"dart-lang",
"http"
] | Scenario is simple:
1) prepare iOS - I use wifi connection to internet and mobile connection is off
2) use code - it almost from flutter docs + some logs [https://github.com/nailgilaziev/ws_change_network_reaction/blob/issue_dead_socket_time/lib/main.dart ](url)
3) run and it must connect to echo server
4) write "o... | Write to a dead socket fails only after ~4 minute on iOS | https://api.github.com/repos/dart-lang/http/issues/1599/comments | 0 | 2019-06-27T18:52:09Z | 2025-01-22T16:04:45Z | https://github.com/dart-lang/http/issues/1599 | 2,804,778,314 | 1,599 |
[
"dart-lang",
"http"
] | On mobile connection quality can vary depending on the environment conditions.
if connection is bad for the moment sometimes connecting to a websocket servers can't be established now, and in this situation ConnectionTimeOut exception must thrown.
Actually this exception throws:
`WebSocketChannelException: WebSock... | Lack of ability to configure connection timeouts | https://api.github.com/repos/dart-lang/http/issues/1598/comments | 18 | 2019-06-27T12:33:45Z | 2025-01-22T16:04:44Z | https://github.com/dart-lang/http/issues/1598 | 2,804,778,293 | 1,598 |
[
"dart-lang",
"http"
] | I'm trying to post data to server (API) which asks for (optional) client certificate.
I described the problem here: https://stackoverflow.com/questions/56598325/bypass-client-certificate-selection-on-post-request-in-dart-flutter
Can anyone help me? | Bypass client certificate selection on POST request | https://api.github.com/repos/dart-lang/http/issues/285/comments | 1 | 2019-06-17T07:01:21Z | 2020-05-07T04:06:20Z | https://github.com/dart-lang/http/issues/285 | 456,774,050 | 285 |
[
"dart-lang",
"http"
] | Currently when using Multipart fields, the headers that are sent for each fields are hard-coded and can't be changed by the caller. I need to be able to change the content-type for a specific field, declaring it as application/json.
I suggest to change the value type of the fields map inside MultipartRequest to a cl... | Multipart with headers per field | https://api.github.com/repos/dart-lang/http/issues/283/comments | 4 | 2019-06-08T12:12:30Z | 2022-03-19T09:36:06Z | https://github.com/dart-lang/http/issues/283 | 453,787,909 | 283 |
[
"dart-lang",
"http"
] | Hi, i have error, after close connection IOWebSocketChannel | Bad state: Cannot add event after closing | https://api.github.com/repos/dart-lang/http/issues/1597/comments | 0 | 2019-06-03T15:21:42Z | 2025-01-22T16:04:43Z | https://github.com/dart-lang/http/issues/1597 | 2,804,778,278 | 1,597 |
[
"dart-lang",
"http"
] | When making a HTTP request, why not use a global `HttpClient` by default?
It's quite common that I just want to make an HTTP request, and I don't want to manage a connection pool. In fact I would be quite happy to have many libraries in my application use the same connection pool. So why not have a default HTTP conn... | Consider using a global default HttpClient | https://api.github.com/repos/dart-lang/http/issues/281/comments | 3 | 2019-05-23T13:00:49Z | 2019-05-24T13:42:46Z | https://github.com/dart-lang/http/issues/281 | 447,649,159 | 281 |
[
"dart-lang",
"http"
] | <!--
Please describe the feature you'd like to see us implement along with a use
case.
Note that this package is designed to be cross-platform and we will only be
able to add features which can be supported with _both_ `dart:io` and
`dart:html`. If you're looking for a feature which is already suppor... | how set ssl in dart | https://api.github.com/repos/dart-lang/http/issues/279/comments | 12 | 2019-05-21T06:13:58Z | 2019-05-22T10:38:54Z | https://github.com/dart-lang/http/issues/279 | 446,434,062 | 279 |
[
"dart-lang",
"http"
] | With Multipart form data, it is allowed to have multiple fields of the same name with different values and they all are submitted to the server.
A curl example of that is below (from Mailgun API documentation):
```bash
curl -s --user 'api:YOUR_API_KEY' \
https://api.mailgun.net/v3/routes \
-F priority=0 ... | Multipart form request with fields of the same name only retains one field value | https://api.github.com/repos/dart-lang/http/issues/277/comments | 6 | 2019-05-15T16:34:21Z | 2024-08-07T02:09:33Z | https://github.com/dart-lang/http/issues/277 | 444,535,968 | 277 |
[
"dart-lang",
"http"
] | Here is code snippet, it works fine with `http: ^0.11.3` but fails with `http: ^0.12.0`
```
List<int> result = bytes_list;
var mediaType = MediaType.parse('image/jpg');
MultipartFile mf = MultipartFile.fromBytes(
"file",
result,
filename: file.name,
cont... | Create mutltipart file from bytes fails. | https://api.github.com/repos/dart-lang/http/issues/276/comments | 6 | 2019-05-15T07:32:12Z | 2019-07-12T07:09:13Z | https://github.com/dart-lang/http/issues/276 | 444,280,712 | 276 |
[
"dart-lang",
"http"
] | Hi I have a dart file named http-example.dart, it has following content.
> import 'package:http/http.dart' as http;
main(List<String> arguments) async {
var url = "http://www.meizitu.com/";
var response = await http.get(url);
print(response.body.toString());
}
When I execute it through `dart... | Connection closed before full header was received | https://api.github.com/repos/dart-lang/http/issues/274/comments | 0 | 2019-05-10T00:41:21Z | 2019-05-10T14:37:30Z | https://github.com/dart-lang/http/issues/274 | 442,490,711 | 274 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.