android 解析带有_的 http url域名,出现解析错误的问题

在 android中 访问带有_ 的域名的时候,例如js_sdk.vlook.cn ,会出现访问错误的问题,  unkonw host is null.

 

在使用Urlconnection 或者 httpclientmanager的时候都会出现这样的问题, 必须去掉_ ,解决。

 

 

 

 

你可能感兴趣的:(host,下划线,_)