Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dart http:1.2.2 can not access Android System WiFi proxy #1414

Open
nuxwork opened this issue Nov 30, 2024 · 2 comments
Open

Dart http:1.2.2 can not access Android System WiFi proxy #1414

nuxwork opened this issue Nov 30, 2024 · 2 comments
Labels
package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@nuxwork
Copy link

nuxwork commented Nov 30, 2024

dart http:1.2.2 access faild on android, no exception, nothing happend. access ok on macos
okhttp:0.1.0 for android access ok
cupertino_http:1.5.1 for ios access ok
url: https://eu-trailcamera-media.s3.eu-central-1.amazonaws.com/0000-TEST/thumb11188.jpeg

import 'dart:io';
import 'package:http/http.dart' as darthttp;

Future<void> main() async {
  var resp = await darthttp.get(Uri.parse(
      'https://eu-trailcamera-media.s3.eu-central-1.amazonaws.com/0000-TEST/thumb11188.jpeg'));
  print('${resp.body}');
}
@nuxwork nuxwork added package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Nov 30, 2024
@nuxwork
Copy link
Author

nuxwork commented Dec 1, 2024

This is pcap of dart http and okhttp, 192.168.5.201 is my proxy address, it looks like okhttp acces by proxy 192.168.5.201, but dart http do not access by proxy

pcap.zip

@nuxwork
Copy link
Author

nuxwork commented Dec 2, 2024

This is android wifi proxy settings
android proxy

This is dart http tcp pcap
dart_http

This is android okhttp tcp pcap
okhttp

@nuxwork nuxwork changed the title Dart http:1.2.2 can not access AWS European Servers Dart http:1.2.2 can not access Android System WiFi proxy Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

1 participant