我認爲的主要問題是我試圖在ssl受保護的網站上獲得php腳本的輸出。爲什麼沒有下面的代碼工作?C#中PHP腳本的輸出#
string URL = "https://mtgox.com/api/0/data/ticker.php";
HttpWebRequest myRequest =
(HttpWebRequest)WebRequest.Create(URL);
myRequest.Method = "GET";
WebResponse myResponse = myRequest.GetResponse();
StreamReader _sr = new StreamReader(myResponse.GetResponseStream(),
System.Text.Encoding.UTF8);
string result = _sr.ReadToEnd();
//Console.WriteLine(result);
result = result.Replace('\n', ' ');
_sr.Close();
myResponse.Close();
Console.WriteLine(result);
它掛在引發WebException被unhandeled操作超時
會發生什麼? – Matthew