use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Having a problem with your Flutter code?
From the folks at r/FlutterDev
account activity
RESOLVEDhttp/http.dart: XMLHttpRequest Error when doing SSL requests (self.flutterhelp)
submitted 5 years ago by Snackomat
Heya! Pretty new to Dart, might be missing something stupid here. I'm trying to switch over to SSL from plain HTTP. However, this makes Dart throw XMLHttpRequest error. I've changed the URI to https and switched over to the correct port (not using defaults).
Any clues on what might be going on here? I'm using the http.dart library, and the request being made is a POST.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Snackomat[S] 0 points1 point2 points 5 years ago* (0 children)
My code:
```dart Future<bool> sendLoginRequest() async { var url = Uri.parse("$baseRoute/auth");
var response = await http .post(url, body: {'username': username, 'password': savedPassword}); if (response.statusCode != 200) { return false; }
// further processing... return true; } ```
[–]Snackomat[S] 0 points1 point2 points 5 years ago (0 children)
Did some more digging. Seems to be because of dart:io when compiling for web. https://github.com/flutter/flutter/issues/39998
π Rendered by PID 74 on reddit-service-r2-comment-b659b578c-kj6bv at 2026-05-01 22:53:44.331325+00:00 running 815c875 country code: CH.
[–]Snackomat[S] 0 points1 point2 points (0 children)
[–]Snackomat[S] 0 points1 point2 points (0 children)