这是我的代码。
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://itunes.apple.com/lookup?id=1218822890");
request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
using(HttpWebResponse response = (HttpWebResponse)request.GetResponse())
using(Stream stream = response.GetResponseStream())
using(StreamReader reader = new StreamReader(stream))
{
string textRead = reader.ReadToEnd();
Debug.Log("\nData Read = "); Debug.Log(textRead);
}
我试图从统一代码读取游戏的网站链接并读取应用程序价格。它返回 nil... call 有什么问题?
相关分类