码迷,mamicode.com
首页 > 其他好文 > 详细

【Unity3D自学记录】Unity3D之Url地址重定向(C#)

时间:2014-10-08 13:59:55      阅读:143      评论:0      收藏:0      [点我收藏+]

标签:http   io   ar   for   strong   sp   art   c   on   

   private string url; 

	// Use this for initialization
	void Start () {
        HttpWebRequest myHttpWebRequest = (HttpWebRequest)HttpWebRequest.Create("这里填写Url");
        myHttpWebRequest.AllowAutoRedirect = false;
        HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();
        url = myHttpWebResponse.Headers.Get("Location");
	}


一般运用于网络运营商重定向地址。

万恶的网络运营商。

【Unity3D自学记录】Unity3D之Url地址重定向(C#)

标签:http   io   ar   for   strong   sp   art   c   on   

原文地址:http://blog.csdn.net/daijinghui512/article/details/39891307

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!