Windows 使用api的基本身份验证连接到iis10的颤振镖问题
我能够使用android的类似方法,效果很好 服务器:Windows 2019,iis10Windows 使用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"
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):#1BaseClient.\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)