Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 使用api的基本身份验证连接到iis10的颤振镖问题_Windows_Flutter_Ssl_Dart_Server - Fatal编程技术网

Windows 使用api的基本身份验证连接到iis10的颤振镖问题

Windows 使用api的基本身份验证连接到iis10的颤振镖问题,windows,flutter,ssl,dart,server,Windows,Flutter,Ssl,Dart,Server,我能够使用android的类似方法,效果很好 服务器:Windows 2019,iis10 Map <String,String> sendHDRS = { "Authorization": basicAuth ,"Content-Type":"application/json" ,"Accept":"application/json"

我能够使用android的类似方法,效果很好

服务器:Windows 2019,iis10

  Map <String,String> sendHDRS = {
      "Authorization": basicAuth
      ,"Content-Type":"application/json"
      ,"Accept":"application/json"
      ,"Accept-Encoding":"gzip, deflate, br"
    };


    http.Response r = await http.post(
        Uri.decodeFull(inURL)
        ,headers: sendHDRS
        ,body: inBody

    );
Map sendHDRS={
“授权”:basicAuth
,“内容类型”:“应用程序/json”
,“接受”:“应用程序/json”
,“接受编码”:“gzip,deflate,br”
};
http.Response r=wait http.post(
Uri.decodeFull(inURL)
,标题:sendHDRS
,body:inBody
);
E/flatter(11967):[错误:flatter/lib/ui/ui\u dart\u state.cc(166)] 未处理的异常:E/flatter(11967):#0 IOClient.send (软件包:http/src/io_-client.dart:62:7)E/flatter(11967): E/颤振(11967):#1
BaseClient.\u sendUnstreamed(包:http/src/base\u client.dart:91:38) E/颤振(11967):#2 BaseClient.post (软件包:http/src/base_client.dart:32:7)E/flatter(11967):#3
邮递(软件包:http/http.dart:70:16)E/flatter (11967):#4 34;与客户端(包:http/http.dart:166:20)E/flatter (11967):#5篇文章(包:http/http.dart:69:5)