【发布时间】:2017-07-10 07:17:56
【问题描述】:
但是当我打电话时: _HttpReq = (HttpWebRequest)WebRequest.Create(url); 它会自动将 Uri 转义为:http://maps.google.com/maps/api/directions/xml?origin=-22.7595196841997,-47.1268794922774&destination=-29.0062986,-49.7737413&mode=driving&waypoints=-27.2050171,-49.6415186%7C-27.2496772,-49.9392315%7C-28.0071174,-49.5894682%7C&sensor=false&client=gme-myClient&signature=QmH-P2kPs4Qt9wiQK4G0f6tH2ck=
我现在正在使用: _HttpReq = (HttpWebRequest)WebRequest.Create(new Uri(this.url, true));
它的作用就像一个魅力,但它已经过时了,所以我需要如何做到这一点而不会过时。
【问题讨论】:
标签: c# google-maps uri